mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-19 17:25:17 +03:00
46 lines
1.3 KiB
Text
46 lines
1.3 KiB
Text
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=php7-pecl-swoole
|
|
_extname=swoole
|
|
pkgver=4.7.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"
|
|
license="Apache-2.0"
|
|
depends="php7-curl php7-json php7-mysqlnd php7-openssl php7-sockets"
|
|
makedepends="php7-dev openssl-dev nghttp2-dev libucontext-dev curl-dev"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir"/$_extname-$pkgver
|
|
subpackages="$pkgname-dev"
|
|
|
|
build() {
|
|
case "$CARCH" in
|
|
ppc64le|s390x|x86) 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-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="
|
|
045f5abfa9d6ed1fa1413df5d4514158b76ccf3afa4175cb6457d862ac91745337280e975d2b830a97cb757d55a2b8d8fcc9cbfb3a92f6f854554708ce94b219 php-pecl-swoole-4.7.0.tgz
|
|
"
|