aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libmustache/APKBUILD
blob: aca4b7843d2ec06dd44c2d36a826f85564d1ba87 (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
37
38
39
40
41
42
43
# Maintainer: Renoir Boulanger <hello@renoirboulanger.com>

pkgname=libmustache
_mustachespec_gitrev=b96be9fd4c6d6984828d93169fe7e86d8a8aec2f
pkgver=0.4.3
pkgrel=0
pkgdesc="C++ implementation of Mustache intended mainly for use as a PHP extension"
url="https://github.com/jbboehr/libmustache"
arch=all
license=MIT
makedepends="autoconf automake libtool yaml-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/jbboehr/${pkgname}/archive/v${pkgver}.tar.gz
		mustache-spec-${_mustachespec_gitrev}.tar.gz::https://github.com/jbboehr/mustache-spec/archive/${_mustachespec_gitrev}.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	rm -rf "$builddir"/spec
	ln -s "$srcdir"/mustache-spec-$_mustachespec_gitrev "$builddir"/spec
	cd "$builddir"
	autoreconf -fiv
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="864a6205bb128d95ecbb82806f526bbdb611d169f74e8cb25fae4e6ba3c36d52587316817ea092f494f140f41d1e70d9485bd10107847881ac56ad37b52fff05  libmustache-0.4.3.tar.gz
9031df8459426bcc91dceb149b19c7e4397bdb08d80dbf175b536effe16ba1808f0a87be1a1f27997ef0b31d87d9c209dec167732e21abc8bd7f3e9982e6d262  mustache-spec-b96be9fd4c6d6984828d93169fe7e86d8a8aec2f.tar.gz"