1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/php7-pecl-swoole/APKBUILD
2022-09-23 13:03:36 +00:00

52 lines
1.5 KiB
Text

# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-swoole
_extname=swoole
pkgver=4.8.12
pkgrel=0
pkgdesc="Event-driven asynchronous and concurrent networking engine with high performance for PHP 7.4 - PECL"
url="https://pecl.php.net/package/swoole"
arch="all"
license="Apache-2.0"
depends="php7-curl php7-json php7-mysqlnd php7-openssl php7-sockets"
makedepends="php7-dev openssl-dev nghttp2-dev c-ares-dev curl-dev"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$pkgver
subpackages="$pkgname-dev"
replaces="php7-pecl-openswoole"
case "$CARCH" in
ppc64le|s390x) makedepends="$makedepends libucontext-dev" ;;
esac
build() {
case "$CARCH" in
ppc64le|s390x) export LDFLAGS="$LDFLAGS -lucontext" ;;
esac
phpize7
./configure --prefix=/usr \
--with-php-config=php-config7 \
--enable-mysqlnd \
--enable-openssl --with-openssl-dir=/usr \
--enable-sockets \
--enable-swoole-curl \
--enable-swoole-json \
--enable-cares \
--enable-http2
make
}
check() {
# needs extra services to test all suite
php7 -d extension=modules/swoole.so --ri swoole
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php7/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/50_$_extname.ini
}
sha512sums="
ebfd39752dc32e42b7167cf229d5440d60ad6c9c4a7f8c4f54b6cb0cd60d882cc9c8764837f6c9392f5e73cbbfd2a4587531754d782470abd13ff246dc18e25d php-pecl-swoole-4.8.12.tgz
"