aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-pecl-swoole
diff options
context:
space:
mode:
authorAndy Postnikov <apostnikov@gmail.com>2018-12-29 03:06:39 +0200
committerAndy Postnikov <apostnikov@gmail.com>2019-01-06 17:33:19 +0200
commita38de13e8011f47028c46c2524d40e5a3c095069 (patch)
tree68da4c0cbc081e4ee03829d8b9697ee0936a1133 /testing/php7-pecl-swoole
parentb8121970ccaa432fd01cd566e5dbe67273b80fd8 (diff)
downloadaports-a38de13e8011f47028c46c2524d40e5a3c095069.tar.bz2
aports-a38de13e8011f47028c46c2524d40e5a3c095069.tar.xz
testing/php7-pecl-swoole: new aport
Closes #9627
Diffstat (limited to 'testing/php7-pecl-swoole')
-rw-r--r--testing/php7-pecl-swoole/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/php7-pecl-swoole/APKBUILD b/testing/php7-pecl-swoole/APKBUILD
new file mode 100644
index 0000000000..12736c1c7c
--- /dev/null
+++ b/testing/php7-pecl-swoole/APKBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Andy Postnikov <apostnikov@gmail.com>
+pkgname=php7-pecl-swoole
+_pkgreal=swoole
+pkgver=4.2.12
+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-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() {
+ cd "$builddir"
+ # 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="99d535ae3a132f8d26c9e7cbc58b35ad37203555859f7823096b853d17f2af43725a69b36e55ca46ada89de719882fbd40cbcec5e55b7b31b512f9e2447ca60f swoole-4.2.12.tgz"