aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/newt/APKBUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/newt/APKBUILD b/testing/newt/APKBUILD
new file mode 100644
index 0000000000..12092de8b3
--- /dev/null
+++ b/testing/newt/APKBUILD
@@ -0,0 +1,31 @@
+# Contributor: Oleg Titov <oleg.titov@gmail.com>
+# Maintainer: Oleg Titov <oleg.titov@gmail.com>
+pkgname=newt
+pkgver=1.5.0
+_ver=${pkgver//./_}_tag
+pkgrel=0
+pkgdesc="Apache Newt is a smart build and package management tool for Apache Mynewt Operating System"
+url="https://mynewt.apache.org"
+arch="x86_64 x86"
+license="Apache-2.0"
+options="!check" # No test suit
+depends="git"
+makedepends="go"
+subpackages="$pkgname-doc"
+source="newt-$pkgver.tar.gz::https://github.com/apache/mynewt-newt/archive/mynewt_${_ver}.tar.gz"
+builddir="$srcdir/mynewt-newt-mynewt_${_ver}"
+
+build() {
+ cd "$builddir"
+ ./build.sh
+}
+
+package() {
+ cd "$builddir"
+ install -Dm 755 newt/newt ${pkgdir}/usr/bin/newt
+
+ install -Dm 644 -t ${pkgdir}/usr/share/licenses/${pkgname}/ LICENSE
+ install -Dm 644 -t ${pkgdir}/usr/share/doc/${pkgname}/ README.md
+}
+
+sha512sums="1e32db93946f75cc22f35d65c15bb4e505e4eed72e929e0864d13604c4f91da1b301ca5cf91650b4fedf47c2328bacc501fdc16b845b2f244d610aa9c710beee newt-1.5.0.tar.gz"