mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-16 04:35:13 +03:00
37 lines
1.1 KiB
Text
37 lines
1.1 KiB
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php82-pecl-zephir_parser
|
|
_extname=zephir_parser
|
|
pkgver=1.5.3
|
|
pkgrel=0
|
|
pkgdesc="Zephir Parser is a code parser, delivered as a C extension for the PHP 8.2 language - PECL"
|
|
url="https://pecl.php.net/package/zephir_parser"
|
|
arch="all"
|
|
license="MIT"
|
|
_phpv=82
|
|
_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() {
|
|
echo "$pkgver" > VERSION
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS="${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="
|
|
0eff9af2ed6019ebcb445eceb1deb0fe9c9f338f305790248795773cb1d0b4c73832d7cd713f5e759723fb328ff1d9d20f15edc98a8e4078c6c8bea1e9873084 php-pecl-zephir_parser-1.5.3.tar.gz
|
|
"
|