diff options
author | Cole Gerdemann | 2020-05-01 15:18:55 -0400 |
---|---|---|
committer | Cole Gerdemann | 2020-05-01 15:18:55 -0400 |
commit | b41056b90eeaf2447f222263e50442e21de37599 (patch) | |
tree | da5d4d8eb9d0dfb3790aa0847f501c0b3c08908d /PKGBUILD | |
download | aur-b41056b90eeaf2447f222263e50442e21de37599.tar.gz |
Added OSD modified plata theme
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..72c667b16386 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,51 @@ +# Maintainer: CorvetteCole <aur@corvettecole.com> + +pkgname=plata-theme-osd-match +pkgver=0.9.7.1 +pkgrel=1 +pkgdesc='A Gtk+ theme based on Material Design Refresh (modified so the volume OSD matches the set accent color)' +arch=('any') +url='https://gitlab.com/CorvetteCole/plata-theme' +license=('CCPL' 'GPL2') +makedepends=('git' 'inkscape' 'libxml2' 'parallel' 'sassc' 'zip') +optdepends=('gtk-engine-murrine: for gtk2 themes' + 'ttf-roboto: Recommended font' + 'marco: Mate support, a package rebuilt is required') +provides=('plata-theme') +conflicts=('plata-theme') +source=("git+https://gitlab.com/CorvetteCole/plata-theme.git#tag=${pkgver}") +sha256sums=('SKIP') + +build() { + # Dirty hack for aur: + # mate support will be built only if marco is present + if LC_ALL=C pacman -Qq marco > /dev/null 2>&1 + then + MARCO_FLAGS="" + else + MARCO_FLAGS="--disable-mate" + fi + + cd "$pkgname" + + ./autogen.sh \ + --prefix='/usr' \ + --enable-parallel \ + --enable-plank \ + --enable-telegram \ + "$MARCO_FLAGS" + make -j1 # it uses GNU Parallel instead +} + +package() { + cd "$pkgname" + + make DESTDIR="$pkgdir" install + + install -dm 755 "$pkgdir"/usr/share/plank/themes + ln -s /usr/share/themes/Plata/plank "$pkgdir"/usr/share/plank/themes/Plata + + install -Dm 644 LICENSE_CC_BY_SA4 -t "$pkgdir"/usr/share/licenses/"$pkgname"/ +} + +# vim: ts=2 sw=2 et: |