diff options
author | Boris Momčilović | 2019-01-08 17:37:28 +0100 |
---|---|---|
committer | Boris Momčilović | 2019-01-08 17:37:28 +0100 |
commit | 6ef15c0f851267b9da7677970c65a1699ee85aa4 (patch) | |
tree | e7792a895765d3a47514fee9aa9215f27c7b0f74 | |
download | aur-6ef15c0f851267b9da7677970c65a1699ee85aa4.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 44 |
2 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..341c7fb88a23 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = php-componere-git + pkgdesc = Complex Type Composition and Manipulation http://docs.php.net/intro.componere + pkgver = 1.3.0.r123.g8d37409 + pkgrel = 1 + url = https://github.com/krakjoe/componere + arch = i686 + arch = x86_64 + license = PHP + makedepends = git + depends = php + backup = etc/php/conf.d/componere.ini + source = php-componere-git::git://github.com/krakjoe/componere.git + md5sums = SKIP + +pkgname = php-componere-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4c4166c1dd20 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,44 @@ +# Maintainer: Boris Momčilović <boris.momcilovic@gmail.com> + +pkgname=php-componere-git +pkgver=1.3.0.r123.g8d37409 +pkgrel=1 +pkgdesc="Complex Type Composition and Manipulation http://docs.php.net/intro.componere" +arch=('i686' 'x86_64') +url="https://github.com/krakjoe/componere" +license=('PHP') +depends=('php') +makedepends=('git') +source=("$pkgname"::'git://github.com/krakjoe/componere.git') +md5sums=('SKIP') +_ininame="componere.ini" +_inifile="etc/php/conf.d/$_ininame" +backup=("$_inifile") + +pkgver() { + cd "$pkgname" + ( set -o pipefail + git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +build() { + cd "$srcdir/$pkgname" + git checkout release + + phpize + ./configure --prefix=/usr + make + #TEST_PHP_EXECUTABLE=`which php` php run-tests.php +} + +package() { + cd "$srcdir/$pkgname" + make PREFIX=/usr INSTALL_ROOT="$pkgdir" install + cat >> "$_ininame" <<EOF +;extension=componere.so +EOF + + install -vDm644 "$_ininame" "$pkgdir/$_inifile" +} |