aboutsummaryrefslogblamecommitdiffstats
path: root/community/php8-pecl-event/APKBUILD
blob: b8974ff2ac4d205cc5695f9b9bb6c64891571fec (plain) (tree)
1
2
3
4
5



                                                    
              





























                                                                                                          
                                                                                                                                                                         
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-event
_extname=event
pkgver=3.0.2r1
pkgrel=0
pkgdesc="PHP 8 extension that provides interface to libevent library - PECL"
url="https://pecl.php.net/package/event"
arch="all"
license="PHP-3.01"
depends="php8-sockets"
makedepends="php8-dev libevent-dev openssl-dev pkgconf"
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() {
	# 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/php8/modules/sockets.so \
		-d extension=modules/$_extname.so"
}

package() {
	make INSTALL_ROOT="$pkgdir" install
	local _confdir="$pkgdir"/etc/php8/conf.d
	install -d $_confdir
	echo "extension=$_extname.so" > $_confdir/$_extname.ini
}

sha512sums="b117119814763bffe1c2c44766a822f638cd0873eeede29aab139fceb09a09df264f0d7b7e882b21dd9a7e96f45d692b45193509c3f53e0f3b10feb59c1a4ae4  php-pecl-event-3.0.2r1.tgz"