diff options
author | Pete Dietl <petedietl@gmail.com> | 2019-05-23 18:03:33 -0500 |
---|---|---|
committer | TBK <tbk@jjtc.eu> | 2019-05-26 05:29:24 +0200 |
commit | 1ec9ef991598dd19d52b0e96bf02fc26734db9c3 (patch) | |
tree | 8177aaa5e5806b21c285b572f579f07b1569a4b2 /testing/libfort | |
parent | 156a6876cfef7abffab5601f55ded9795658ef79 (diff) | |
download | aports-1ec9ef991598dd19d52b0e96bf02fc26734db9c3.tar.bz2 aports-1ec9ef991598dd19d52b0e96bf02fc26734db9c3.tar.xz |
testing/libfort: new aport
Closes: GH-8027
Diffstat (limited to 'testing/libfort')
-rw-r--r-- | testing/libfort/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/libfort/APKBUILD b/testing/libfort/APKBUILD new file mode 100644 index 0000000000..b64c85bec0 --- /dev/null +++ b/testing/libfort/APKBUILD @@ -0,0 +1,39 @@ +# Maintainer: Pete Dietl <petedietl@gmail.com> +pkgname=libfort +pkgver=0.1.4 +pkgrel=0 +pkgdesc="A simple crossplatform library to create formatted text tables." +url="https://github.com/seleznevae/libfort" +arch="all" +license="MIT" +makedepends="cmake" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/seleznevae/libfort/tar.gz/v$pkgver" + +build() { + mkdir build && cd build + if [ "$CBUILD" != "$CHOST" ]; then + CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" + fi + + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=ON \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ + -DCMAKE_C_FLAGS="$CFLAGS" \ + ${CMAKE_CROSSOPTS} + make +} + +check() { + cd build + make test +} + +package() { + cd build + make DESTDIR="$pkgdir" install +} +sha512sums="f812a26713933de52a1c808d88e050dce4c325cc2cc042ad0c368d7ddcb94344ee6f77c77fb063e3ee6ff6765865207ab8a788351f59e725b7b1ea4da4a428a5 libfort-0.1.4.tar.gz" |