aboutsummaryrefslogtreecommitdiffstats
path: root/community/php8-pecl-event/APKBUILD
blob: 9c16dba60c29bc356f081aef7985e3a97960091d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Contributor: Andy Postnikov <apostnikov@gmail.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-event
_extname=event
pkgver=3.0.2
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="672f9d1552cadae580a9c0449c1d7aa62f28b3fa28340a3f956173ebd23b04b9d857e248982339287f06ecbdf5dd177ae151261bace77bb4bb19e5a4ba9c779b  php-pecl-event-3.0.2.tgz"