From e2945f81c5c8b7a400516ee9b7abcef5c0d9b26d Mon Sep 17 00:00:00 2001 From: bill-auger Date: Fri, 25 May 2018 15:07:23 -0400 Subject: [parabola-theme-blackmate]: add qt5ct deps --- pcr-testing/parabola-theme-blackmate/PKGBUILD | 9 +++++---- .../parabola-theme-blackmate.install | 17 +++++++++++++++++ 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 pcr-testing/parabola-theme-blackmate/parabola-theme-blackmate.install (limited to 'pcr-testing') diff --git a/pcr-testing/parabola-theme-blackmate/PKGBUILD b/pcr-testing/parabola-theme-blackmate/PKGBUILD index 5530b8e03..09dc2baea 100644 --- a/pcr-testing/parabola-theme-blackmate/PKGBUILD +++ b/pcr-testing/parabola-theme-blackmate/PKGBUILD @@ -3,17 +3,18 @@ pkgname=parabola-theme-blackmate pkgver=3.22.16 -pkgrel=parabola1 +pkgrel=parabola3 pkgdesc="Parabola's dark desktop theme" arch=('any') license=('GPL3') url=https://mate-desktop.org -depends=() +depends=('qt5ct' 'qt5-styleplugins') makedepends=('git') source=(https://git.parabola.nu/artwork.git/snapshot/official%2F2018.tar.gz) -sha256sums=('d697952ebd0007a5bd0f9bfd46dede7a7b9ccfdf14c4db29f411e689f5ecf4fc') +install=$pkgname.install +sha256sums=('d1c57dabfc735ca6eef2f116d8c83ac1c5c1f20f89a6b5f5459982c822186044') package() @@ -21,7 +22,7 @@ package() cd $srcdir/official/2018/gtk-themes/parabola-blackmate mkdir -p ${pkgdir}/usr/share/themes/parabola-blackmate - for ea in apps cinnamon gtk-2.0 gtk-3.0 metacity-1 unity index.theme + for ea in apps cinnamon gtk-2.0 gtk-3.0 metacity-1 qt5ct unity index.theme do cp -r $ea ${pkgdir}/usr/share/themes/parabola-blackmate/$ea done } diff --git a/pcr-testing/parabola-theme-blackmate/parabola-theme-blackmate.install b/pcr-testing/parabola-theme-blackmate/parabola-theme-blackmate.install new file mode 100644 index 000000000..be4aab294 --- /dev/null +++ b/pcr-testing/parabola-theme-blackmate/parabola-theme-blackmate.install @@ -0,0 +1,17 @@ +post_install() { + + touch /etc/environment + grep "^QT_QPA_PLATFORMTHEME='*qt5ct'*" /etc/environment && \ + sed "s|QT_QPA_PLATFORMTHEME=.*|QT_QPA_PLATFORMTHEME='qt5ct'|g" /etc/environment || \ + sed "$ a\QT_QPA_PLATFORMTHEME='qt5ct'" /etc/environment + + + cat << _EOF + +==> Installation: +==> To allow QT programs to follow the theme: 'parabola-theme-blackmate'; +==> either copy /usr/share/themes/parabola-blackmate/qt5ct/qt5ct.conf to ~/.config/qt5ct/ +==> or run the `qt5ct` program and select the theme: 'gtk2'. + +_EOF +} -- cgit v1.2.3