1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/php7-pecl-ast/APKBUILD
2022-08-09 23:32:19 +00:00

39 lines
1.1 KiB
Text

# Contributor: Andy Blyler <andy@blyler.cc>
# Maintainer: Fabio Ribeiro <fabiorphp@gmail.com>
pkgname=php7-pecl-ast
_extname=ast
pkgver=1.1.0
pkgrel=0
pkgdesc="PHP extension exposing PHP 7.4 abstract syntax tree - PECL"
url="https://pecl.php.net/package/ast"
arch="all"
license="BSD-3-Clause"
_phpv=7
_php=php$_phpv
depends="$_php-common"
makedepends="$_php-dev"
source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$pkgver
provides="php7-ast=$pkgver-r$pkgrel" # for backward compatibility
replaces="php7-ast" # for backward compatibility
build() {
phpize$_phpv
./configure --prefix=/usr --with-php-config=/usr/bin/php-config$_phpv
make
}
check() {
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/$_php/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/$_extname.ini
}
sha512sums="
9049a6f1f3312c9efc68dd4f4e324bd9c2fbc2c97d1e9aecf1f808f91002bf5cfc20247560b288cc6581f2651d9419470e349713680da64d26a8eba77c8eac64 php-pecl-ast-1.1.0.tar.gz
"