diff --git a/testing/php8-pecl-seaslog/APKBUILD b/testing/php8-pecl-seaslog/APKBUILD new file mode 100644 index 0000000000000000000000000000000000000000..cb5efc1f4dd4857ed8d3ef2a1d6d6d13fd088155 --- /dev/null +++ b/testing/php8-pecl-seaslog/APKBUILD @@ -0,0 +1,37 @@ +# Contributor: viest <dev@service.viest.me> +# Maintainer: Chitao.Gao <neeke@php.net> +pkgname=php8-pecl-seaslog +_extname=seaslog +pkgver=2.2.0 +pkgrel=0 +pkgdesc="An effective, fast, stable log extension for PHP 9." +url="https://pecl.php.net/package/SeasLog" +arch="all" +license="PHP-3.01" +depends="php8-common" +makedepends="php8-dev" +source="php-pecl-$_extname-$pkgver.tar.gz::https://pecl.php.net/get/SeasLog-$pkgver.tgz" +builddir="$srcdir"/SeasLog-$pkgver + +build() { + phpize8 + ./configure \ + --prefix=/usr \ + --with-php-config=/usr/bin/php-config8 + make +} + +check() { + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test \ + TESTS=--show-diff + php8 -dextension=modules/$_extname.so --ri $_extname +} + +package() { + make INSTALL_ROOT="$pkgdir" install + local _confdir="$pkgdir"/etc/php8/conf.d + install -d $_confdir + echo "extension=$_extname" > $_confdir/$_extname.ini +} + +sha512sums="5c1d7dd6641bd8b8f3bf2c52f4b427103643fa1b7407a89769de7f450e882f9a1484b5b8b1aecf13c8060966b3bbcb52cbaf1536b93a8bceca5104bfda547629 php-pecl-seaslog-2.2.0.tar.gz"