1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/php8-pecl-yaml/APKBUILD
2023-03-05 20:39:49 +00:00

37 lines
979 B
Text

# Contributor: Renoir Boulanger <hello@renoirboulanger.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-yaml
_extname=yaml
pkgver=2.2.3
pkgrel=0
pkgdesc="YAML syntax bindings for PHP 8 - PECL"
url="https://pecl.php.net/package/yaml"
arch="all"
license="MIT"
depends="php8-common"
makedepends="php8-dev yaml-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir/$_extname-$pkgver"
build() {
phpize8
./configure \
--prefix=/usr \
--with-php-config=php-config8
make
}
check() {
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test TESTS=--show-diff
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/70_$_extname.ini
}
sha512sums="
99d63d430dd2fa9767ecb3f70599d2ebd4c53b27770df72c00c4723816de422c581cea05e96c3cba5aaecbdc57cc482fad0f1fa300bdcf887daa7c2c034e6f4b php-pecl-yaml-2.2.3.tgz
"