# Contributor: Renoir Boulanger # Maintainer: Andy Postnikov pkgname=php81-pecl-yaml _extname=yaml pkgver=2.2.3 pkgrel=1 pkgdesc="YAML syntax bindings for PHP 8.1 - PECL" url="https://pecl.php.net/package/yaml" arch="all" license="MIT" _phpv=81 _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() { make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff $_php -d extension=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=" 99d63d430dd2fa9767ecb3f70599d2ebd4c53b27770df72c00c4723816de422c581cea05e96c3cba5aaecbdc57cc482fad0f1fa300bdcf887daa7c2c034e6f4b php-pecl-yaml-2.2.3.tgz "