# Maintainer: Andy Postnikov pkgname=php7-pecl-swoole _pkgreal=swoole pkgver=4.4.0 pkgrel=0 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" 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() { # 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="e33029671826c747750ac9e6b158b4ebe909b7c94dd9329aca9af63593bfd3ab7285063d02a6d405189faa22f98d358c87b05111c4a29c4e53c49dcf774cb6cd swoole-4.4.0.tgz"