1
[alpine-aports] [PATCH] community/php7-pecl-swoole: new aport
https://github.com/swoole/swoole-src
High perf async network engine for PHP - PECL
---
community/php7-pecl-swoole/APKBUILD | 40 +++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
create mode 100644 community/php7-pecl-swoole/APKBUILD
diff --git a/community/php7-pecl-swoole/APKBUILD
b/community/php7-pecl-swoole/APKBUILD
new file mode 100644
index 0000000000..8cfe10c5dd
--- /dev/null
+++ b/community/php7-pecl-swoole/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: JeongHun Moon <jhmoon2000@gmail.com >
+# Maintainer: JeongHun Moon <jhmoon2000@gmail.com >
+pkgname=php7-pecl-swoole
+_pkgreal=swoole
+pkgver=4.2.7
+pkgrel=0
+pkgdesc="High perf async network engine for PHP - PECL"
+url="https://github.com/swoole/swoole-src"
+arch="all"
+license="Apache2.0"
+depends="php7-common php7-sockets php7-mysqlnd hiredis openssl"
+makedepends="php7-dev openssl-dev hiredis-dev autoconf"
+source="https://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
+builddir="$srcdir/$_pkgreal-$pkgver"
+options="!check" # Need running Swoole extension
+provides="php7-swoole=$pkgver-r$pkgrel" # for backward compatibility
+replaces="php7-swoole" # for backward compatibility
+
+build() {
+ cd "$builddir"
+
+ phpize7
+ ./configure \
+ --enable-openssl \
+ --enable-sockets \
+ --enable-mysqlnd \
+ --enable-async-hiredis
+ make
+}
+
+package() {
+ cd "$builddir"
+
+ make INSTALL_ROOT="$pkgdir"/ install
+
+ install -d "$pkgdir"/etc/php7/conf.d
+ echo "extension=$_pkgreal.so" >
"$pkgdir"/etc/php7/conf.d/$_pkgreal.ini
+}
+
+sha512sums="c7a95b98cb3e1213c60b39f3f3b38705f24f9571f38499be7f21f7fff9a8c281797089ba0bbcb288328e8e2ec2fde8b19fbb66ee18b47fa77d13879a260c0a72
swoole-4.2.7.tgz"
--
2.19.1
Hi,
On Mon, Nov 12, 2018 at 8:01 AM Abe Moon <jhmoon2000@gmail.com > wrote:
> https://github.com/swoole/swoole-src
> High perf async network engine for PHP - PECL
> ---
> community/php7-pecl-swoole/APKBUILD | 40 +++++++++++++++++++++++++++++
> 1 file changed, 40 insertions(+)
> create mode 100644 community/php7-pecl-swoole/APKBUILD
>
usually new packages go into testing repo. We move them after the
maintainer has reasonably tested it and any outstanding issue has been
resolved.
Thanks!
/eo