mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-20 17:55:15 +03:00
50 lines
1.4 KiB
Text
50 lines
1.4 KiB
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php81-pecl-swoole
|
|
_extname=swoole
|
|
pkgver=5.0.2
|
|
pkgrel=0
|
|
pkgdesc="Event-driven asynchronous and concurrent networking engine with high performance for PHP 8.1 - PECL"
|
|
url="https://pecl.php.net/package/swoole"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
depends="php81-curl php81-mysqlnd php81-openssl php81-sockets"
|
|
makedepends="php81-dev openssl-dev>3 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="php81-pecl-openswoole"
|
|
|
|
case "$CARCH" in
|
|
ppc64le|s390x) makedepends="$makedepends libucontext-dev" ;;
|
|
esac
|
|
|
|
build() {
|
|
case "$CARCH" in
|
|
ppc64le|s390x) export LDFLAGS="$LDFLAGS -lucontext" ;;
|
|
esac
|
|
phpize81
|
|
./configure --prefix=/usr \
|
|
--with-php-config=php-config81 \
|
|
--enable-mysqlnd \
|
|
--enable-openssl --with-openssl-dir=/usr \
|
|
--enable-sockets \
|
|
--enable-swoole-curl \
|
|
--enable-cares
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# needs extra services to test all suite
|
|
php81 -d extension=modules/swoole.so --ri swoole
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/php81/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname" > $_confdir/50_$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
958983764e04b4944b7ed42ad8388fa2d460007bac194607a5936e5d9f5c4fcb2a52121b4cbe88af3a7894aa9054b13907432049cb41681f4425f85c480883c0 php-pecl-swoole-5.0.2.tgz
|
|
"
|