blob: 704a9770793050d7eda906d44d7e270b221a89ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php7-pecl-swoole
_pkgreal=swoole
pkgver=4.4.2
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" # https://github.com/swoole/swoole-src/issues/2692
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="be0a429dec4c0cb6a2a52cd2bd2905c5297286f6be7758d4bf83f175d5bc3bb6c2db0c0a28522f5f8fe7b976beeae1a1dfb9422645a5d79cc867b9df36269ce4 swoole-4.4.2.tgz"
|