# Contributor: Andy Blyler # Maintainer: Fabio Ribeiro pkgname=php7-pecl-ast _pkgext=ast _pkgreal=php-ast pkgver=1.0.5 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="7f56816553894849b539233209c57df9f9239ddc8a172c924a1f72c57ba474228e6f82779787a40ed1d78cac890dcd3d49bbb1aa2f7d4c29b95ae9809c836141 php7-pecl-ast-1.0.5.tar.gz"