aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nitro/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/nitro/APKBUILD')
-rw-r--r--testing/nitro/APKBUILD35
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"