aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libmustache/APKBUILD
blob: 342753546b6bc3cf3404b694d982aa4980c13563 (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.5.0
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="aab8e6d787c019810dd41f6d37f41f5be69c184f1bb97baf99497ff259b0caf9af41382b7222117d5a4e48706cc840575fdcf2190471171b4efa8447b746ec17  libmustache-0.5.0.tar.gz
9031df8459426bcc91dceb149b19c7e4397bdb08d80dbf175b536effe16ba1808f0a87be1a1f27997ef0b31d87d9c209dec167732e21abc8bd7f3e9982e6d262  mustache-spec-b96be9fd4c6d6984828d93169fe7e86d8a8aec2f.tar.gz"