testing/php84-pecl-ast: upgrade to 1.1.2

This commit is contained in:
Andy Postnikov 2024-08-10 23:48:31 +00:00
parent 0606e4709e
commit 4b04ce3b32

View File

@ -0,0 +1,38 @@
# Contributor: Andy Blyler <andy@blyler.cc>
# Contributor: Fabio Ribeiro <fabiorphp@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php84-pecl-ast
_extname=ast
pkgver=1.1.2
pkgrel=0
pkgdesc="PHP extension exposing PHP 8.4 abstract syntax tree - PECL"
url="https://pecl.php.net/package/ast"
arch="all"
license="BSD-3-Clause"
_phpv=84
_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
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="
973a1c68855591fbdd6b0eab08a28fb8acd5cef5e0ba98e5acd8cb747e48ae638e51e38f1633a834415dec330f8d580dc6fcf13f0dfbe40aacc0679c4922257d php-pecl-ast-1.1.2.tar.gz
"