diff options
author | Andy Postnikov <apostnikov@gmail.com> | 2018-08-02 16:04:24 +0300 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-08-04 15:29:43 +0300 |
commit | 8e92dde717ac869175cb848b3eeb037241cb46b9 (patch) | |
tree | ecbaeab38ab3d2949d6942529765d59cc294f6c6 /testing | |
parent | eeaf92447d74e86b97cf4ea6da5452a14ad60391 (diff) | |
download | aports-8e92dde717ac869175cb848b3eeb037241cb46b9.tar.bz2 aports-8e92dde717ac869175cb848b3eeb037241cb46b9.tar.xz |
testing/php7-event: new aport
Diffstat (limited to 'testing')
-rw-r--r-- | testing/php7-event/APKBUILD | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/php7-event/APKBUILD b/testing/php7-event/APKBUILD new file mode 100644 index 0000000000..12479f2f0b --- /dev/null +++ b/testing/php7-event/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Andy Postnikov <apostnikov@gmail.com> +# Maintainer: Andy Postnikov <apostnikov@gmail.com> +pkgname=php7-event +_pkgname=event +pkgver=2.4.0 +pkgrel=0 +pkgdesc="PHP extension that provides interface to libevent library" +url="https://pecl.php.net/package/event" +arch="all" +license="PHP-3.01" +depends="php7 php7-sockets" +makedepends="php7-dev autoconf libevent-dev libressl-dev pkgconf" +source="$pkgname-$pkgver.tgz::https://pecl.php.net/get/$_pkgname-$pkgver.tgz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + cd "$builddir" + + phpize7 + ./configure --prefix=/usr --with-php-config=php-config7 + make +} + +check() { + cd "$builddir" + # Tests require sockets extension which is not bundled + sed -i 's#PHP_TEST_SHARED_EXTENSIONS = `#PHP_TEST_SHARED_EXTENSIONS = -d extension=/usr/lib/php7/modules/sockets.so `#' Makefile + make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test +} + +package() { + cd "$builddir" + + make INSTALL_ROOT="$pkgdir" install + + install -d "$pkgdir"/etc/php7/conf.d + echo "extension=$_pkgname.so" > "$pkgdir"/etc/php7/conf.d/$_pkgname.ini +} + +sha512sums="d238b72764461cf338d20618e4dee80ed8e8519350d17a6c789a68d749d2f4adae991ee43928ab09321caaff321fa21aaa4b5fac6f827974b2f8e9295e948293 php7-event-2.4.0.tgz" |