diff options
author | TBK <tbk@jjtc.eu> | 2020-02-23 23:58:06 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-02-23 22:36:21 -0300 |
commit | 9a238d2748598627c5f9dcf66513b1bd7d7e6487 (patch) | |
tree | a2743baa0aa720e4f9a78eda4b8ea9918c759364 /testing/jsonnet/APKBUILD | |
parent | b2a86012a9ed6129882d66266feee8f801b5b963 (diff) | |
download | aports-9a238d2748598627c5f9dcf66513b1bd7d7e6487.tar.bz2 aports-9a238d2748598627c5f9dcf66513b1bd7d7e6487.tar.xz |
testing/jsonnet: upgrade to 0.15.0
Diffstat (limited to 'testing/jsonnet/APKBUILD')
-rw-r--r-- | testing/jsonnet/APKBUILD | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/testing/jsonnet/APKBUILD b/testing/jsonnet/APKBUILD index a3269c1777..b491c541fc 100644 --- a/testing/jsonnet/APKBUILD +++ b/testing/jsonnet/APKBUILD @@ -1,45 +1,40 @@ # Contributor: TBK <alpine@jjtc.eu> # Maintainer: TBK <alpine@jjtc.eu> pkgname="jsonnet" -pkgver="0.13.0" -pkgrel=1 +pkgver="0.15.0" +pkgrel=0 pkgdesc="The data templating language" url="https://jsonnet.org/" arch="all" license="Apache-2.0" makedepends="cmake" -checkdepends="gtest-dev" +checkdepends="bash 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 - " +source="$pkgname-$pkgver.tar.gz::https://github.com/google/jsonnet/archive/v$pkgver.tar.gz" build() { - mkdir build && cd build - cmake .. \ + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + cmake \ -DCMAKE_BUILD_TYPE=None \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DBUILD_CLI_SHARED=ON \ - -DUSE_SYSTEM_GTEST=ON + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_STATIC_LIBS=OFF \ + -DBUILD_SHARED_BINARIES=ON \ + -DUSE_SYSTEM_GTEST=ON \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} . make } check() { - cd "$builddir"/build - ctest + make test } 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" +sha512sums="b63c1bf82e4fc9ba3f1009ed4e4ba1010e3e7f81bd816a234e48d35607eae3cba95cab57813d35daa9f024e316bae5256340a6f8d6d884f9136cdbf062a2b351 jsonnet-0.15.0.tar.gz" |