# Maintainer: Andy Postnikov pkgname=php7-pecl-swoole _pkgreal=swoole pkgver=4.3.1 pkgrel=1 pkgdesc="Event-driven asynchronous and concurrent networking engine with high performance for PHP." url="https://pecl.php.net/package/swoole" arch="all !s390x !ppc64le !x86" # https://github.com/swoole/swoole-src/issues/2181 license="Apache-2.0" depends="php7-openssl php7-sockets" makedepends="php7-dev autoconf re2c openssl-dev nghttp2-dev" source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz arch.patch" builddir="$srcdir"/$_pkgreal-$pkgver subpackages="$pkgname-dev" build() { cd "$builddir" phpize7 ./configure --prefix=/usr \ --with-php-config=php-config7 \ --enable-openssl \ --enable-sockets \ --enable-http2 make } check() { cd "$builddir" # needs extra services to test all suite php7 -d extension="$builddir"/modules/swoole.so --ri swoole } package() { cd "$builddir" make INSTALL_ROOT="$pkgdir"/ install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php7/conf.d/50_$_pkgreal.ini } sha512sums="63eb47a7ee5c298ec2f2a7ed1d5fdc0ad23d680c86879ced48a541b511ba93501a4eedbc46c40382a131e482d1407a89a987c87c3b3de6b641b982b3ed976dc3 swoole-4.3.1.tgz 5e5e8cc787bfdaab7ecb450fd40b52d71526a4e479c67f8fb62326ec988b408bbcb8d23cebcec0bc5991131078f53272f37f4e21942ba773b9c8c73cce8c22ab arch.patch"