summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKohei Suzuki2017-12-19 02:11:09 +0900
committerKohei Suzuki2017-12-19 02:13:31 +0900
commit2d0a423ace61452d50c1dbb06bd789520218a4f8 (patch)
tree0bd9a02f32b631f0f7a378b6452a414f1373971a
downloadaur-2d0a423ace61452d50c1dbb06bd789520218a4f8.tar.gz
Jsonnet v0.9.5
-rw-r--r--.SRCINFO14
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD37
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3f559293080
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = jsonnet
+ pkgdesc = The data templating language
+ pkgver = 0.9.5
+ pkgrel = 1
+ url = http://jsonnet.org/
+ arch = x86_64
+ license = Apache
+ checkdepends = python2
+ depends = gcc-libs
+ source = https://github.com/google/jsonnet/archive/v0.9.5.tar.gz
+ sha512sums = 630941b0f9a86cf4697f242cbec3fdb565a194fa391c39b199c9adddac6994afbf45dccb1881c325d92e6729e1bd62915690363e8fb5b65a894f3e00dae4d47d
+
+pkgname = jsonnet
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..763d5537d66
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+/src
+/pkg
+*.pkg.tar.xz
+*.tar.gz
+*.log
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7402bad03c3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Kohei Suzuki <eagletmt@gmail.com>
+pkgname=jsonnet
+pkgver=0.9.5
+pkgrel=1
+pkgdesc='The data templating language'
+arch=('x86_64')
+url='http://jsonnet.org/'
+license=('Apache')
+depends=('gcc-libs')
+checkdepends=('python2')
+source=("https://github.com/google/${pkgname}/archive/v${pkgver}.tar.gz")
+
+build() {
+ cd "$pkgname-$pkgver"
+ CFLAGS="$CFLAGS -fPIC -Iinclude" CXXFLAGS="$CXXFLAGS -fPIC -Iinclude -Ithird_party/md5" make jsonnet libjsonnet.so libjsonnet++.so
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ CFLAGS="$CFLAGS -fPIC -Iinclude" make test
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/lib" "$pkgdir/usr/include"
+
+ install -m755 jsonnet "$pkgdir/usr/bin/jsonnet"
+ install -m755 libjsonnet.so "$pkgdir/usr/lib/libjsonnet.so"
+ install -m755 libjsonnet++.so "$pkgdir/usr/lib/libjsonnet++.so"
+ install -m644 include/libjsonnet.h "$pkgdir/usr/include/libjsonnet.h"
+ install -m644 include/libjsonnet++.h "$pkgdir/usr/include/libjsonnet++.h"
+}
+
+# vim: set ft=sh:
+
+sha512sums=('630941b0f9a86cf4697f242cbec3fdb565a194fa391c39b199c9adddac6994afbf45dccb1881c325d92e6729e1bd62915690363e8fb5b65a894f3e00dae4d47d')