diff options
author | Andy Blyler <andy@blyler.cc> | 2016-03-31 12:45:10 -0500 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-04-06 06:18:44 +0000 |
commit | e52b543f338ed52ab65105b33b81073f91f33437 (patch) | |
tree | be3246a7ff9c7d17042912cfb110e9bf94020ef4 /testing/php7-ast/APKBUILD | |
parent | 5033d12c6051620be95886d0dc6261d3334725f5 (diff) | |
download | aports-e52b543f338ed52ab65105b33b81073f91f33437.tar.bz2 aports-e52b543f338ed52ab65105b33b81073f91f33437.tar.xz |
testing/php7-ast: new aport
https://github.com/nikic/php-ast
Extension exposing PHP 7 abstract syntax tree
Diffstat (limited to 'testing/php7-ast/APKBUILD')
-rw-r--r-- | testing/php7-ast/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/php7-ast/APKBUILD b/testing/php7-ast/APKBUILD new file mode 100644 index 0000000000..92da90f81e --- /dev/null +++ b/testing/php7-ast/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Andy Blyler <andy@blyler.cc> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-ast +_pkgext=ast +_pkgreal=php-ast +pkgver=0.1.1 +_pkgver=${pkgver/_rc/RC} +pkgrel=0 +pkgdesc="PHP7 extension exposing PHP 7 abstract syntax tree" +url="https://github.com/nikic/php-ast" +arch="all" +license="BSD" +depends="php7" +pecldepends="php7-dev autoconf" +makedepends="$pecldepends" +install="" +subpackages="" +source="$pkgname-$pkgver.tar.gz::https://github.com/nikic/php-ast/archive/v$_pkgver.tar.gz" + +builddir="$srcdir"/$_pkgreal-$_pkgver +build() { + cd "$builddir" + phpize7 || return 1 + ./configure --prefix=/usr \ + --with-php-config=/usr/bin/php-config7 \ + || return 1 + make || return 1 +} + +package() { + cd "$builddir" + make INSTALL_ROOT="$pkgdir/" install || return 1 + install -d "$pkgdir"/etc/php7/conf.d || return 1 + echo "extension=$_pkgext.so" > "$pkgdir"/etc/php7/conf.d/$_pkgext.ini +} + +md5sums="8ea356bd81ed52e838ac1105433c7ab6 php7-ast-0.1.1.tar.gz" +sha256sums="85ecc69fa9ba777c1ee6218f5afcc78e13f9c0506b147a6c173a5976c9977967 php7-ast-0.1.1.tar.gz" +sha512sums="c007315e9bc674f80e99dc5b0b4405a3da8e523d038f0e08102de07a3a214cc0558927e426c766548d24f806e3ef6449181c80bebb22856ac824cb412b93625b php7-ast-0.1.1.tar.gz" |