mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
39 lines
1,007 B
Text
39 lines
1,007 B
Text
# Maintainer: Renoir Boulanger <hello@renoirboulanger.com>
|
|
pkgname=php7-pecl-mustache
|
|
_extname=mustache
|
|
pkgver=0.9.3
|
|
pkgrel=0
|
|
pkgdesc="PHP 7 extension: C++ implementation of Mustache - PECL"
|
|
url="https://pecl.php.net/package/mustache"
|
|
arch="all"
|
|
license="MIT"
|
|
depends="php7-common"
|
|
makedepends="php7-dev libmustache"
|
|
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
|
|
builddir="$srcdir"/$_extname-$pkgver
|
|
|
|
build() {
|
|
phpize7
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--with-php-config=php-config7 \
|
|
--enable-mustache
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
|
|
}
|
|
|
|
package() {
|
|
make INSTALL_ROOT="$pkgdir" install
|
|
local _confdir="$pkgdir"/etc/php7/conf.d
|
|
install -d $_confdir
|
|
echo "extension=$_extname.so" > $_confdir/70_$_extname.ini
|
|
}
|
|
|
|
sha512sums="
|
|
11b651f571368d5e745c299de90e48019425eb34c7ce7413645fb0d41744a9ce337e5484b4bb3933a6ab290cd7f2b5ab9b778afcd9b222bbc871b26a5fb0ba31 php-pecl-mustache-0.9.3.tgz
|
|
"
|