testing/mustach: new aport

https://gitlab.com/jobol/mustach
C implementation of mustache templating
This commit is contained in:
Lucas Ramage 2020-01-21 13:41:06 +00:00 committed by Leo
parent 99f9d22adb
commit 08f73aa090

31
testing/mustach/APKBUILD Normal file
View File

@ -0,0 +1,31 @@
# Contributor: Lucas Ramage <ramage.lucas@protonmail.com>
# Maintainer: Lucas Ramage <ramage.lucas@protonmail.com>
pkgname=mustach
pkgver=0.99_git20200124
_sha=62f2b3c5625de3292ea86ca92a077e162db75911 # contains fully qualified soname
pkgrel=0
pkgdesc="C implementation of mustache templating"
url="https://gitlab.com/jobol/mustach"
arch="all"
license="Apache-2.0"
makedepends="json-c-dev valgrind"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://gitlab.com/jobol/mustach/-/archive/$_sha/mustach-$_sha.tar.bz2"
builddir="$srcdir/$pkgname-$_sha"
build() {
make
}
check() {
make test
}
package() {
make -j1 DESTDIR="$pkgdir" PREFIX="/usr" install
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/
install -m644 AUTHORS README.md \
"$pkgdir"/usr/share/doc/$pkgname/
}
sha512sums="d2cd892ff936d400b1776a298bad81b38289733b215c6d5ccd7601001e26282a57d9cdcab514c0b48a4109b156f398904e5f3304765b32bec6ad95c7749c8220 mustach-62f2b3c5625de3292ea86ca92a077e162db75911.tar.bz2"