# Maintainer: Renoir Boulanger pkgname="php7-mustache" _phpext="mustache" pkgver=0.8.1 pkgrel=0 pkgdesc="PHP 7 PECL extension: C++ implementation of Mustache" giturl="https://github.com/jbboehr/php-mustache.git" url="https://github.com/jbboehr/php-mustache" arch="all" license="MIT" depends="libmustache" makedepends="php7-dev autoconf" # Look at commit ref for spec/ folder at https://github.com/jbboehr/mustache-spec _mustachespec_gitrev=72233f3ffda9e33915fd3022d0a9ebbcce265acd _pkg_filename=php-mustache-$pkgver source="php-mustache-$pkgver.tar.gz::https://github.com/jbboehr/php-mustache/archive/v$pkgver.tar.gz mustache-spec-$_mustachespec_gitrev.tar.gz::https://github.com/jbboehr/mustache-spec/archive/$_mustachespec_gitrev.tar.gz" builddir="$srcdir/$_pkg_filename/" prepare() { rm -rf "$builddir"/spec ln -s "$srcdir"/mustache-spec-$_mustachespec_gitrev "$builddir"/spec cd "$builddir" default_prepare } build() { cd "$builddir" phpize7 ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --with-php-config=php-config7 \ --enable-mustache 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=$_phpext.so" > "$pkgdir"/etc/php7/conf.d/70_$_phpext.ini } sha512sums="4533fafd60e020f56528572d185c74d6c62cba7c1430b24fbe5d9a387ac89e866a2fbe38c91faca5cd75a597fb2c18647a7209ae8d99b609fcbdbf2b221a71b7 php-mustache-0.8.1.tar.gz d63ca7c3016190e101b2db153a33e4e523e0199e3fb3778733d791e4853bab20925046d0cb34bbde0985a4b6b78b1ec6003db1e2384693352d03f7d67799ed10 mustache-spec-72233f3ffda9e33915fd3022d0a9ebbcce265acd.tar.gz"