From c5ce1ec427f731b201431452e87ee9b2b5fda1c3 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Fri, 8 Apr 2016 17:51:31 -0300 Subject: awf-git: add new package to [pcr] --- pcr/awf-git/PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++ pcr/awf-git/awf.install | 14 ++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 pcr/awf-git/PKGBUILD create mode 100644 pcr/awf-git/awf.install (limited to 'pcr/awf-git') 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 + +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 +} -- cgit v1.2.3-54-g00ecf