summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 378371b11f7b7c4df012bf0305564da85f75fc17 (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
# Maintainer: Pablo Lezaeta <prflr 88 (arro'a) gmail puntocom>
# Contributor: Ner0
# Contributor: Alessio Sergi <asergi at archlinux dot us>

pkgname=xfce-theme-greybird-git
pkgver=1.6.r611
pkgrel=1
pkgdesc="Desktop theme suite from Xubuntu, with support for Xfce, Metacity and Unity"
arch=('any')
url="https://github.com/shimmerproject/Greybird"
license=('GPL' 'CCPL')
depends=('gtk-engine-murrine')
makedepends=('git')
optdepends=('elementary-xfce-icons: matching icon theme'
            'emerald: emerald theme'
            'lightdm-gtk2-greeter: lightdm GTK+2 theme'
            'lightdm-gtk3-greeter: lightdm GTK+3 theme'
            'lightdm-unity-greeter: lightdm unity theme')
provides=('xfce-theme-greybird')
conflicts=('xfce-theme-greybird')
options=('!strip')
source=('Greybird::git://github.com/shimmerproject/Greybird.git')
md5sums=('SKIP')

pkgver() {
  cd "Greybird"
  echo $(git describe --always --abbrev=0).r$(git rev-list --count master) | sed 's|-|.|g' | sed 's|v||g'
}

package() {
  cd "$srcdir/Greybird"

  # install emerald theme
  install -d -m 755 "$pkgdir/usr/share/emerald/themes/Greybird"
  tar zxf Greybird.emerald -C "$pkgdir/usr/share/emerald/themes/Greybird/"

  # create theme dirs
  install -d -m 755 "$pkgdir"/usr/share/themes/Greybird{,-compact/xfwm4}

  # install compact theme
  install -m 644 xfwm4_compact/* "$pkgdir/usr/share/themes/Greybird-compact/xfwm4/"

  # clean up
  rm -rf {.git,.gitignore,Greybird.emerald,LICENSE.{CC,GPL},README,xfwm4_compact}

  # install theme
  cp -r . "$pkgdir/usr/share/themes/Greybird/"
}