summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c12f2ec113f23487a14719906dac47aeb1bce8c4 (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: Gabriel Felipe Huwe <gabrielhuwe@gmail.com>

pkgname=adapta-gtk-theme-legacy-git
pkgver=3.94.0.149.r1.9abbb7ef
pkgrel=1
pkgdesc='An adaptive Gtk+ theme based on Material Design Guidelines 
(Legacy version)'
arch=('any')
url='https://github.com/ghuwe/adapta-gtk-theme-legacy'
license=('GPL2')
depends=('gtk-engine-murrine' 'gtk3')
makedepends=('git' 'gnome-shell' 'inkscape' 'libxml2' 'parallel' 
'sassc')
optdepends=('gnome-shell: The GNOME Shell'
            'gnome-flashback: The GNOME flashback shell'
            'budgie-desktop: The Budgie desktop'
            'cinnamon: The Cinnamon desktop'
            'xfdesktop: The Xfce desktop')
provides=('adapta-gtk-theme')
conflicts=('adapta-gtk-theme' 'adapta-gtk-theme-git')
source=('git+https://github.com/ghuwe/adapta-gtk-theme-legacy.git')
sha256sums=('SKIP')

pkgver() {
  cd adapta-gtk-theme-legacy

  git describe --tags | sed 's/-/.r/; s/-g/./'
}

build() {
  cd adapta-gtk-theme-legacy
 
  ./autogen.sh \
    --prefix='/usr' \
    --enable-parallel \
    --enable-chrome \
    --enable-plank \
    --enable-telegram \
    --disable-unity
  make
}

package() {
  cd adapta-gtk-theme-legacy

  make DESTDIR="${pkgdir}" install
  install -dm 755 "${pkgdir}"/usr/share/plank/themes
  ln -s /usr/share/themes/Adapta/plank "${pkgdir}"/usr/share/plank/themes/Adapta
}