# Contributor: Andy Postnikov # Maintainer: Andy Postnikov pkgname=php81-pecl-event _php=81 _extname=event pkgver=3.0.8 pkgrel=1 pkgdesc="PHP 8.1 extension that provides interface to libevent library - PECL" url="https://pecl.php.net/package/event" arch="all" license="PHP-3.01" depends="php$_php-sockets" makedepends="php$_php-dev libevent-dev openssl-dev>3" source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz" builddir="$srcdir/$_extname-$pkgver" build() { phpize$_php ./configure --prefix=/usr --with-php-config=php-config$_php make } check() { local _ext="-d extension=modules/$_extname.so" php$_php $_ext --ri $_extname # Tests require sockets extension which is not bundled make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 SKIP_ONLINE_TESTS=1 test \ PHP_TEST_SHARED_EXTENSIONS=" \ -d extension=/usr/lib/php$_php/modules/sockets.so \ $_ext" \ TESTS="--show-diff tests" } package() { make INSTALL_ROOT="$pkgdir" install local _confdir="$pkgdir"/etc/php$_php/conf.d install -d $_confdir echo "extension=$_extname" > $_confdir/$_extname.ini } sha512sums=" 45b4c07cac6dfca386cf9e6c792abc72c6f68d1443a1c67fd645f5e6f05ae9d45fb346b50b35cc6818ca70ebbff93c42afd801e70e9ebc63f997366996193593 php-pecl-event-3.0.8.tgz "