mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/php7-gearman: new aport
PHP wrapper to libgearman
This commit is contained in:
parent
5999e39cb3
commit
885332091b
43
testing/php7-gearman/APKBUILD
Normal file
43
testing/php7-gearman/APKBUILD
Normal file
@ -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"
|
Loading…
Reference in New Issue
Block a user