diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2018-03-07 17:32:31 +0200 |
---|---|---|
committer | Andy Postnikov <apostnikov@gmail.com> | 2018-04-22 20:11:29 +0300 |
commit | 885332091bc48379d2a44bbe6af34124b2f7c183 (patch) | |
tree | e40b5d875207620e9c6430c353e3fc4ab1a31876 /testing | |
parent | 5999e39cb311bc3350a7b82cb8ecca5d19b3644a (diff) | |
download | aports-885332091bc48379d2a44bbe6af34124b2f7c183.tar.bz2 aports-885332091bc48379d2a44bbe6af34124b2f7c183.tar.xz |
testing/php7-gearman: new aport
PHP wrapper to libgearman
Diffstat (limited to 'testing')
-rw-r--r-- | testing/php7-gearman/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/php7-gearman/APKBUILD b/testing/php7-gearman/APKBUILD new file mode 100644 index 0000000000..5b3b10dbe7 --- /dev/null +++ b/testing/php7-gearman/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Valery Kartel <valery.kartel@gmail.com> +# Maintainer: Valery Kartel <valery.kartel@gmail.com> +pkgname=php7-gearman +_pkgreal=gearman +_prefix=pecl-gearman +pkgver=2.0.3 +_pkgver=${pkgver/_rc/RC} +pkgrel=0 +pkgdesc="PHP7 wrapper to libgearman" +url="https://github.com/wcgallego/pecl-gearman" +arch="all" +license="PHP" +options="!check" # Requires server running +depends= +makedepends="gearman-dev autoconf libtool php7-dev php7-pcntl" +install= +subpackages= +source="https://github.com/wcgallego/$_prefix/archive/$_pkgreal-$_pkgver.zip" +builddir="$srcdir/$_prefix-$_pkgreal-$_pkgver" + +build() { + cd "$builddir" + phpize7 + ./configure \ + --prefix=/usr \ + --with-php-config=/usr/bin/php-config7 + make +} + +check() { + cd "$builddir" + 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=$_pkgreal.so" > \ + "$pkgdir"/etc/php7/conf.d/$_pkgreal.ini +} + +sha512sums="0041bbbd8c312e136469e6fd927a8678935316e9f9b43898ec48c09f314993e31db53cd3ecca283666be4f0df3b93737cfd87e6de4c24f1b4619edcc24204d11 gearman-2.0.3.zip" |