Commit 298d935e authored by Rafael del Valle's avatar Rafael del Valle Committed by Jakub Jirutka

testing/handlebars: new aport

https://github.com/jbboehr/handlebars.c
C implementation of handlebars.js
parent 21e3d5d8
# vim: smartindent noexpandtab tabstop=4 shiftwidth=4
# Contributor: John Boehr <jbboehr@gmail.com>
# Maintainer: Rafael del Valle <rvalle@privaz.io>
pkgname=handlebars
pkgver=0.6.3
pkgrel=0
pkgdesc="C implementation library of handlebars.js"
url="https://github.com/jbboehr/handlebars.c"
license="LGPLv2.1+"
arch="all"
_mustachespec_ver="1.1.3"
_handlebarsspec_ver="4.0.5-p1"
depends=""
makedepends="automake autoconf libtool talloc-dev json-c-dev bison flex yaml-dev lmdb-dev pcre-dev check-dev"
subpackages="$pkgname-dev $pkgname-utils"
source="handlebars.c-$pkgver.tar.gz::https://github.com/jbboehr/handlebars.c/archive/v$pkgver.tar.gz
mustache-spec-$_mustachespec_ver.tar.gz::https://github.com/mustache/spec/archive/v$_mustachespec_ver.tar.gz
handlebars-spec-$_handlebarsspec_ver.tar.gz::https://github.com/jbboehr/handlebars-spec/archive/v$_handlebarsspec_ver.tar.gz"
builddir="$srcdir"/handlebars.c-$pkgver
prepare() {
rm -rf "$builddir"/spec
mkdir "$builddir"/spec
ln -s "$srcdir"/spec-$_mustachespec_ver "$builddir"/spec/mustache
ln -s "$srcdir"/handlebars-spec-$_handlebarsspec_ver "$builddir"/spec/handlebars
default_prepare
}
build() {
cd "$builddir"
./bootstrap
./configure --prefix=/usr --disable-refcounting
make
}
check() {
cd "$builddir"
make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
utils() {
pkgdesc="Handlebars command line utilities"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
sha512sums="12d43ab22a874eebdca49d034bb6dd7ed45b344cbfb4b14d619bd6ebdb3508fb3cad18fb9e1bb4e24695b9f34d07f13506f645aeb5cd64da4583ef5018b215a7 handlebars.c-0.6.3.tar.gz
801a9cbf8a39080b183b20fbf327b420bcd6ed162bb58165dabafeb45fae277a9da506b6639ee7b955f6c206f0b8826d39588a43ffd86ab5ef4be6e9be2bc842 mustache-spec-1.1.3.tar.gz
81f0ff5ffc2d6b72465bdcbd2325d022faf73ec79586f3d8dfb07b7a6ec9147280872a82184b8d7ecdd8b22611b6b420c02ab437794bcd0aba67d2bf2082bc5d handlebars-spec-4.0.5-p1.tar.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment