# Contributor: Andy Postnikov # Maintainer: Andy Postnikov pkgname=php7-tideways_xhprof _pkgext=tideways_xhprof _pkgreal=php-xhprof-extension pkgver=5.0.1 _pkgver=${pkgver/_/-} pkgrel=0 pkgdesc="Modern XHProf compatible Profiler for PHP 7" url="http://tideways.io" arch="all !s390x" # fails to build https://github.com/tideways/php-xhprof-extension/issues/72 license="Apache-2.0" depends="php7" makedepends="php7-dev autoconf" source="$pkgname-$pkgver.tar.gz::https://github.com/tideways/php-xhprof-extension/archive/v$_pkgver.tar.gz " builddir="$srcdir/$_pkgreal-$_pkgver" build() { phpize7 ./configure --prefix=/usr \ --with-php-config=/usr/bin/php-config7 make } check() { make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test } package() { make INSTALL_ROOT="$pkgdir/" install install -d "$pkgdir"/etc/php7/conf.d echo "extension=$_pkgext.so" > "$pkgdir"/etc/php7/conf.d/$_pkgext.ini } sha512sums="d96310eb29eea7a81c69e65d7030d6553062a5a94b88becd7f774960b4a2594f34f9b0b795c020c325713f9261df16e213668f3414bb4a2e8bd8b6a970135570 php7-tideways_xhprof-5.0.1.tar.gz"