1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/testing/php7-gearman/APKBUILD
2019-10-20 20:18:48 +03:00

43 lines
1.1 KiB
Text

# 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.6
_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="5c159f766bd8674d387760bbd90ec9de0e54a677917f56e148db8b15c83c7d81ce0f1c2be68120e70fe4b5b70f502d0562f6038934e03997b3f480227ea30762 gearman-2.0.6.zip"