aboutsummaryrefslogtreecommitdiffstats
path: root/testing/php7-mustache/APKBUILD
blob: eb5530a51bc5ddfff32e590f7307e4b52d8db932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer: Renoir Boulanger <hello@renoirboulanger.com>
pkgname="php7-mustache"
_phpext="mustache"
pkgver=0.9.1
pkgrel=0
pkgdesc="PHP 7 PECL extension: C++ implementation of Mustache"
url="https://pecl.php.net/package/mustache"
arch="all"
license="MIT"
depends="php7-common"
makedepends="php7-dev autoconf re2c libmustache"
source="https://pecl.php.net/get/$_phpext-$pkgver.tgz"
builddir="$srcdir"/$_phpext-$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
	install -d "$pkgdir"/etc/php7/conf.d
	echo "extension=$_phpext.so" > "$pkgdir"/etc/php7/conf.d/70_$_phpext.ini
}

sha512sums="0ff16f300cec312370effd68574e289a0993f3d45b1bb26469f19f3312ff8bfa9d2b3c682a3f2e5c4e20f41cb2c668269b17f3bd70272285dd007ab6bdf5327e  mustache-0.9.1.tgz"