summaryrefslogtreecommitdiff
path: root/pcr/awf-git/PKGBUILD
blob: 07bf0cef49aa7b8558bcc85df657f961882d8a0e (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
# Maintainer (aur): Valère Monseur <valere dot monseur@ymail dot com>

# parabola changes and rationale:
#  - added install file for icon cache and desktop database maintenance

pkgname=awf-git
_pkgname=awf
pkgver=v1.4.0.r0.gc937f1b
pkgrel=1
pkgdesc='A theme preview application for gtk2 and gtk3'
arch=('i686' 'x86_64' 'armv7h')
url='https://github.com/valr/awf'
license=('GPL')
depends=('gtk2' 'gtk3' 'hicolor-icon-theme')
makedepends=('git')
source=("$pkgname"::'git+https://github.com/valr/awf.git')
md5sums=('SKIP')
install=awf.install

pkgver() {
  cd "${srcdir}/${pkgname}"

  git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/${pkgname}"

  ./autogen.sh
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/${pkgname}"

  make DESTDIR="${pkgdir}" install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${_pkgname}/COPYING"
}