1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/php82-pecl-swoole/APKBUILD
2022-08-05 17:02:40 +02:00

52 lines
1.5 KiB
Text

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