summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d682dfa6d80c7b66cde1db541311de188f071c1e (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
50
51
52
53
54
55
# Maintainer: Hoàng Văn Khải <hvksmr1996@gmail.com>

pkgname='plata-theme-gnome'
pkgver='0.9.9'
pkgrel='0'
pkgdesc='Plata theme for GTK apps and GNOME Shell only'
provides=('plata-theme')
conflicts=('plata-theme')
arch=('any')
url='https://gitlab.com/tista500/plata-theme'
license=('CCPL' 'GPL2')
makedepends=(
  'git'
  'gnome-shell'
  'inkscape'
  'libxml2'
  'parallel'
  'sassc'
)
optdepends=(
  'gtk-engine-murrine: for gtk2 themes'
  'ttf-roboto: Recommended font'
)
source=("git+https://gitlab.com/tista500/plata-theme.git#tag=${pkgver}")
sha256sums=('SKIP')

build() {
  cd plata-theme

  git checkout "${pkgver}"

  ./autogen.sh \
    --prefix='/usr' \
    --enable-parallel \
    --enable-telegram \
    --disable-plank \
    --disable-cinnamon \
    --disable-flashback \
    --disable-xfce \
    --disable-openbox-3 \
    --disable-mate

  make
}

package() {
  cd plata-theme

  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/
}