mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 14:26:38 +02: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.7.0
|
|
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="
|
|
68d2d1e51982614bda1688f4967011fd2497814415863079022a662b5d4d86912f14e2a192962a252e5bed6fa811f99629539e46446631ca355bce6e15e8dac5 php-pecl-zephir_parser-1.7.0.tar.gz
|
|
"
|