aboutsummaryrefslogtreecommitdiffstats
path: root/testing/jsonnet/APKBUILD
diff options
context:
space:
mode:
authorTBK <tbk@jjtc.eu>2019-06-19 22:17:37 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-06-20 10:13:09 -0300
commit15aa878b0dd21efa1aef2518baaf60ba57571daf (patch)
tree55a5f935cd86eb1439da50452ed9838ea1775e8c /testing/jsonnet/APKBUILD
parent19b9749b21c861c7f19505796b8f5df2ff191793 (diff)
downloadaports-15aa878b0dd21efa1aef2518baaf60ba57571daf.tar.bz2
aports-15aa878b0dd21efa1aef2518baaf60ba57571daf.tar.xz
testing/jsonnet: new aport
Diffstat (limited to 'testing/jsonnet/APKBUILD')
-rw-r--r--testing/jsonnet/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/jsonnet/APKBUILD b/testing/jsonnet/APKBUILD
new file mode 100644
index 0000000000..fd66ae872e
--- /dev/null
+++ b/testing/jsonnet/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: TBK <alpine@jjtc.eu>
+# Maintainer: TBK <alpine@jjtc.eu>
+pkgname="jsonnet"
+pkgver="0.13.0"
+pkgrel=0
+pkgdesc="The data templating language"
+url="https://jsonnet.org/"
+arch="all"
+license="Apache-2.0"
+makedepends="cmake"
+checkdepends="gtest-dev"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/google/jsonnet/archive/v$pkgver.tar.gz
+ build-cli-shared.patch
+ use-real-sys-gtest.patch
+ fix-soname-ver.patch
+ "
+
+build() {
+ mkdir build && cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DBUILD_CLI_SHARED=ON \
+ -DUSE_SYSTEM_GTEST=ON
+ make
+}
+
+check() {
+ cd "$builddir"/build
+ ctest
+}
+
+package() {
+ cd "$builddir"/build
+ make DESTDIR="$pkgdir" install
+
+ # Remove static lib
+ rm "$pkgdir"/usr/lib/libjsonnet.a
+}
+
+sha512sums="d19e5398763e37b79b0ef02368f6bd6215d2df234b5ff7a6d98e2306a0d47290600061c9f868c0c262570b4f0ee9eee6c309bcc93937b12f6c14f8d12339a7d5 jsonnet-0.13.0.tar.gz
+6fe49c3d9a720096b443a7875ce4b96281871b0070b6243599e5ed4bf64638f8fd118e35d2a3a19c11bb68b3b475c29f1e4ca84f755ec329d5602d783ca39e41 build-cli-shared.patch
+948f89109a4d8d658cfffed8058557b133ef9d62c62854ba13d2dccccd532f0625a4ebe72ed5f748c72da518c0abb44df2add0d49e1dcdf6a105e112ff96b326 use-real-sys-gtest.patch
+4ab891d05bf2ab1bdbc3cfda4bdb6d8ea79c85b6866f847211733dfe6b00b19c8056e01ebd397c6669c3fc3c116e9202df0bb940bcba5a07b09bfbcac10746a3 fix-soname-ver.patch"