blob: 92615af2ae1d00ba11aff701b2db4d48307d9880 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: nightuser <nightuser.android@gmail.com>
pkgname=plata-theme
pkgver=0.9.9
pkgrel=1
pkgdesc='A Gtk+ theme based on Material Design Refresh'
arch=('any')
url='https://gitlab.com/tista500/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')
source=("git+https://gitlab.com/tista500/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:
|