# Contributor: Valery Kartel # Maintainer: Valery Kartel pkgname=php7-gearman _pkgreal=gearman _prefix=pecl-gearman pkgver=2.0.5 _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="4dfa4a1a02ec98d5932a6038b5ac59a64fb4ffe20d7ebd371e557442134cc36eec19327452c66f5d9497b977c91f8a91e242527b14633486c8bdb844ab0f3ee4 gearman-2.0.5.zip"