diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-08 17:51:31 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-04-08 17:51:31 -0300 |
commit | c5ce1ec427f731b201431452e87ee9b2b5fda1c3 (patch) | |
tree | 0c22284a2a1f8094098af089675277cdcbd3e165 /pcr/awf-git/PKGBUILD | |
parent | e3c35d802e532828ede54110ec3a33cb14f2ed2f (diff) | |
download | abslibre-c5ce1ec427f731b201431452e87ee9b2b5fda1c3.tar.gz abslibre-c5ce1ec427f731b201431452e87ee9b2b5fda1c3.tar.bz2 abslibre-c5ce1ec427f731b201431452e87ee9b2b5fda1c3.zip |
awf-git: add new package to [pcr]
Diffstat (limited to 'pcr/awf-git/PKGBUILD')
-rw-r--r-- | pcr/awf-git/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pcr/awf-git/PKGBUILD b/pcr/awf-git/PKGBUILD new file mode 100644 index 000000000..f48afd640 --- /dev/null +++ b/pcr/awf-git/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer (Arch): Valère Monseur <valere dot monseur@ymail dot com> + +pkgname=awf-git +_pkgname=awf +pkgver=v1.3.0.r0.g191e428 +pkgrel=1 +pkgdesc="A theme preview application for gtk2 and gtk3" +arch=(i686 x86_64) +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" +} |