blob: a3269c1777b71a334a35a708a7cbe5579b738082 (
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
44
45
|
# Contributor: TBK <alpine@jjtc.eu>
# Maintainer: TBK <alpine@jjtc.eu>
pkgname="jsonnet"
pkgver="0.13.0"
pkgrel=1
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=None \
-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"
|