# Contributor: Andy Postnikov # Maintainer: Andy Postnikov pkgname=php7-tideways_xhprof _pkgext=tideways_xhprof _pkgreal=php-xhprof-extension pkgver=5.0.0 _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="3ec8ba3af45360ede1ea6f13dae206c30013ebf89a4ff29f395ff1f6058decbb90372b0c33e0daca56f9286ad6299efde784a91a3493dfb1746b2afac3ae4ad3 php7-tideways_xhprof-5.0.0.tar.gz"