diff options
author | James An | 2015-12-24 15:56:42 -0500 |
---|---|---|
committer | James An | 2015-12-24 15:56:42 -0500 |
commit | d5a0d1ed449e6d2fc94e8c1308ee9e4f2d20c837 (patch) | |
tree | 684a8a8977c4efaf8db1169f20e58cf4b766a9d2 /PKGBUILD | |
download | aur-d5a0d1ed449e6d2fc94e8c1308ee9e4f2d20c837.tar.gz |
Initial commit with working PKGBUILD.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e5a1245cb750 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,47 @@ +# Maintainer: James An <james@jamesan.ca> + +pkgname="php-cairo-git" +_pkgname=${pkgname%-git} +pkgver=0.3.2.beta.r31.g1bc059c +pkgrel=1 +pkgdesc="PHP Object Oriented interface to Cairo Graphics library." +arch=('any') +url="https://github.com/gtkforphp/${_pkgname#php-}" +license=('LGPL2') +depends=('php' 'cairo') +makedepends=('git') +provides=("$_pkgname=$pkgver") +conflicts=("$_pkgname") +options=() +install= +source=("$_pkgname"::"git+https://github.com/jamesan/${_pkgname#php-}.git") +md5sums=('SKIP') + +pkgver() { + cd "$_pkgname" + ( + set -o pipefail + git describe --long --tag | sed -r 's/([^-]*-g)/r\1/;s/-/./g;s/^v//' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "$_pkgname" + + phpize + ./configure --prefix=/usr + make +} + +check() { + cd "$_pkgname" + + NO_INTERACTION=1 make -k test +} + +package() { + cd "$_pkgname" + + make INSTALL_ROOT="$pkgdir/" install +} |