diff options
author | Bradley J Chambers <brad.chambers@gmail.com> | 2017-06-29 19:17:20 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-08-29 08:22:37 +0000 |
commit | eea57c117d8c2f0b6a6be4658eb6c06e89e32949 (patch) | |
tree | 92b8cbf593212a2ac074415b7e199e30b6352577 /testing/nitro/APKBUILD | |
parent | 16c9711c3468272f0edb6bc7eb17435188aa01b3 (diff) | |
download | aports-eea57c117d8c2f0b6a6be4658eb6c06e89e32949.tar.bz2 aports-eea57c117d8c2f0b6a6be4658eb6c06e89e32949.tar.xz |
testing/nitro: new aport
https://github.com/hobu/nitro
Nitro is a library for reading/writing NITF files.
[TT: options=!check]
Diffstat (limited to 'testing/nitro/APKBUILD')
-rw-r--r-- | testing/nitro/APKBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/nitro/APKBUILD b/testing/nitro/APKBUILD new file mode 100644 index 0000000000..5a19911eab --- /dev/null +++ b/testing/nitro/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Bradley J Chambers <brad.chambers@gmail.com> +# Maintainer: Bradley J Chambers <brad.chambers@gmail.com> +pkgname=nitro +pkgver=2.7 +_pkgver="$pkgver"dev-1 +pkgrel=0 +pkgdesc="The Nitro NITF project" +url="https://github.com/hobu/nitro" +arch="all" +license="GPL3" +depends="" +makedepends="cmake linux-headers" +install="" +subpackages="$pkgname-dev" +source="$pkgname-$pkgver.tar.gz::https://github.com/hobu/$pkgname/archive/$_pkgver.tar.gz" +builddir="$srcdir/$pkgname-$_pkgver" +options="!check" + +build() { + mkdir -p "$builddir" + cd "$builddir" + + mkdir build && cd build + cmake .. \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release + make +} + +package() { + cd "$builddir"/build + make DESTDIR="$pkgdir" install +} + +sha512sums="825a0561393b231cfd1de057401b4051214a54b50fc5f04a6125cb6a6fc160863a6224145daa621582c164a1a39aebad26ca818d2cedc09fbfda2bcab663a0ed nitro-2.7.tar.gz" |