1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/testing/php8-pecl-mustache/APKBUILD
2022-11-27 02:34:40 +01:00

40 lines
1 KiB
Text

# Contributor: Renoir Boulanger <hello@renoirboulanger.com>
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
pkgname=php8-pecl-mustache
_extname=mustache
pkgver=0.9.3
pkgrel=0
pkgdesc="PHP 8 extension: C++ implementation of Mustache - PECL"
url="https://pecl.php.net/package/mustache"
arch="all"
license="MIT"
depends="php8-common"
makedepends="php8-dev libmustache"
source="php-pecl-$_extname-$pkgver.tgz::https://pecl.php.net/get/$_extname-$pkgver.tgz"
builddir="$srcdir"/$_extname-$pkgver
build() {
phpize8
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--with-php-config=php-config8 \
--enable-mustache
make
}
check() {
make NO_INTERACTION=1 REPORT_EXIT_STATUS=1 test
}
package() {
make INSTALL_ROOT="$pkgdir" install
local _confdir="$pkgdir"/etc/php8/conf.d
install -d $_confdir
echo "extension=$_extname" > $_confdir/70_$_extname.ini
}
sha512sums="
11b651f571368d5e745c299de90e48019425eb34c7ce7413645fb0d41744a9ce337e5484b4bb3933a6ab290cd7f2b5ab9b778afcd9b222bbc871b26a5fb0ba31 php-pecl-mustache-0.9.3.tgz
"