summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5af4c3ffecd5b03a886e62e54bad10721b2681c4 (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
# 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=3.23.4+0
pkgrel=1
pkgdesc="Desktop theme suite from Xubuntu, with support for Xfce, Metacity and Unity"
arch=('any')
url="https://github.com/shimmerproject/Greybird"
# https://shimmerproject.org
license=('CC-BY-SA-3.0' 'GPL-2.0-or-later')
depends=('gtk-engine-murrine')
makedepends=('git'
	     'meson'
	     'sassc'
	     'librsvg')
optdepends=('elementary-xfce-icons: Use the stable or -git icon set'
	    'gtk-engine-murrine: GTK2 theme support'
	    'gtk3: required for CSS/GTK3 theme'
	    'gtk4: For the GTK4 support'
            'shimmer-wallpapers: Contains the Greybird wallpaper, among others'
            'lightdm-gtk-greeter: Required for the LightDM GTK theme'
	    'lib32-gtk-engine-murrine: Required for GTK2 in 32-bit apps for a 64-bit environment')
provides=('xfce-theme-greybird')
conflicts=('xfce-theme-greybird')
options=('!strip')
source=('Greybird::git+https://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'
  echo "$(git describe --long | sed -r 's/-([0-9,a-g,A-G]{7}.*)//' | sed 's/-/+/' | sed 's/v//g' )"
}

build(){
  arch-meson "Greybird" build
  meson compile -C build
}
package() {
  meson install -C build --destdir "$pkgdir"

  cd "Greybird"
  install -Dm644 LICENSE.CC -t "$pkgdir/usr/share/licenses/$pkgname/"
}