diff options
Diffstat (limited to 'community/php7-pecl-ast/APKBUILD')
-rw-r--r-- | community/php7-pecl-ast/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/community/php7-pecl-ast/APKBUILD b/community/php7-pecl-ast/APKBUILD new file mode 100644 index 0000000000..f3b0e30b11 --- /dev/null +++ b/community/php7-pecl-ast/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Andy Blyler <andy@blyler.cc> +# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com> +pkgname=php7-pecl-ast +_pkgext=ast +_pkgreal=php-ast +pkgver=1.0.0 +pkgrel=0 +pkgdesc="PHP extension exposing PHP 7 abstract syntax tree - PECL" +url="https://pecl.php.net/package/ast" +arch="all" +license="BSD-3-Clause" +depends="php7-common" +makedepends="php7-dev autoconf re2c" +source="$pkgname-$pkgver.tar.gz::https://pecl.php.net/get/$_pkgext-$pkgver.tgz" +builddir="$srcdir"/$_pkgext-$pkgver +provides="php7-ast=$pkgver-r$pkgrel" # for backward compatibility +replaces="php7-ast" # for backward compatibility + +build() { + cd "$builddir" + phpize7 + ./configure --prefix=/usr \ + --with-php-config=/usr/bin/php-config7 + make +} + +check() { + cd "$builddir" + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test +} + +package() { + cd "$builddir" + make INSTALL_ROOT="$pkgdir/" install + install -d "$pkgdir"/etc/php7/conf.d + echo "extension=$_pkgext.so" > "$pkgdir"/etc/php7/conf.d/$_pkgext.ini +} + +sha512sums="22469190dff801ab39b5948cb071cfb03c43ba924fad49f3f2f0a1596ff6952cb0b8560f9815d86cc3a058b07fb3f49c92f7068a814de67c2fe6b934be42cdf4 php7-pecl-ast-1.0.0.tar.gz" |