# Contributor: Valery Kartel # Maintainer: Valery Kartel 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"