1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

testing/php85-pecl-yaml: new aport

This commit is contained in:
Andy Postnikov 2025-07-02 19:54:56 +02:00
parent 72fb2b8133
commit 8da1d87316

View file

@ -0,0 +1,41 @@
# Contributor: Renoir Boulanger <hello@renoirboulanger.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php85-pecl-yaml
_extname=yaml
pkgver=2.2.4
pkgrel=0
pkgdesc="YAML syntax bindings for PHP 8.5 - PECL"
url="https://pecl.php.net/package/yaml"
arch="all"
license="MIT"
_phpv=85
_php=php$_phpv
depends="$_php-common"
makedepends="$_php-dev yaml-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
install_if="php-$_extname php$_phpv"
build() {
phpize$_phpv
./configure --prefix=/usr --with-php-config=php-config$_phpv
make
}
check() {
rm tests/yaml_parse_file_002.phpt
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
$_php -d extension="$builddir"/modules/$_extname.so --ri $_extname
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/$_php/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/70_$_extname.ini
}
sha512sums="
f16a241ff54cc53017b29f13cf0683b254950429bbe627798b23c24cf0e938cdf9123cc53c028a0aca25de9e6e385e536695d65cd418271f8eef194fa9e234e5 php-pecl-yaml-2.2.4.tgz
"