summaryrefslogtreecommitdiff
path: root/user/newt
diff options
context:
space:
mode:
Diffstat (limited to 'user/newt')
-rw-r--r--user/newt/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/user/newt/APKBUILD b/user/newt/APKBUILD
new file mode 100644
index 000000000..c05167f63
--- /dev/null
+++ b/user/newt/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=newt
+pkgver=0.52.20
+pkgrel=0
+pkgdesc="Terminal user interface library"
+url="https://pagure.io/newt/"
+arch="all"
+options="!check" # No test suite.
+license="LGPL-2.0-only"
+depends=""
+makedepends="popt-dev slang-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="https://pagure.io/newt/archive/r${pkgver//./-}/newt-r${pkgver//./-}.tar.gz"
+builddir="$srcdir/newt-r${pkgver//./-}"
+
+prepare() {
+ default_prepare
+ ./autogen.sh
+}
+
+build() {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d8d66cef16595d289e4d8cc75589c684e855158f0eda3530d8be9f980f663c4f175ac47925cf9ba6980e9e5fdb0a83f7bcacf38fef0db31a1a48a62bd07bdec6 newt-r0-52-20.tar.gz"