summaryrefslogtreecommitdiff
path: root/pcr/awf-git
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-08 17:51:31 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2016-04-08 17:51:31 -0300
commitc5ce1ec427f731b201431452e87ee9b2b5fda1c3 (patch)
tree0c22284a2a1f8094098af089675277cdcbd3e165 /pcr/awf-git
parente3c35d802e532828ede54110ec3a33cb14f2ed2f (diff)
awf-git: add new package to [pcr]
Diffstat (limited to 'pcr/awf-git')
-rw-r--r--pcr/awf-git/PKGBUILD36
-rw-r--r--pcr/awf-git/awf.install14
2 files changed, 50 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"
+}
diff --git a/pcr/awf-git/awf.install b/pcr/awf-git/awf.install
new file mode 100644
index 000000000..9b226b7f7
--- /dev/null
+++ b/pcr/awf-git/awf.install
@@ -0,0 +1,14 @@
+pkgname=awf
+
+post_upgrade() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_remove() {
+ post_upgrade
+}