diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rwxr-xr-x | .gitignore | 27 | ||||
-rw-r--r-- | PKGBUILD | 47 |
3 files changed, 93 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d4c0357595e3 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Thu Dec 24 20:56:16 UTC 2015 +pkgbase = php-cairo-git + pkgdesc = PHP Object Oriented interface to Cairo Graphics library. + pkgver = 0.3.2.beta.r31.g1bc059c + pkgrel = 1 + url = https://github.com/gtkforphp/cairo + arch = any + license = LGPL2 + makedepends = git + depends = php + depends = cairo + provides = php-cairo=0.3.2.beta.r31.g1bc059c + conflicts = php-cairo + source = php-cairo::git+https://github.com/jamesan/cairo.git + md5sums = SKIP + +pkgname = php-cairo-git + diff --git a/.gitignore b/.gitignore new file mode 100755 index 000000000000..43316bc3c124 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +# From: https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore + +*.tar +*.tar.* +*.zip +*.tgz +*.log +*.log.* +*.sig + +# makepkg working folders +pkg +src + +# +# Additional ignore patterns: +# + +# Source files +*.deb +*.gem +*.out +*.rpm +*.html + +# Ignore package source folders +*/* 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 +} |