summaryrefslogtreecommitdiff
path: root/system/nvi/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'system/nvi/APKBUILD')
-rw-r--r--system/nvi/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/system/nvi/APKBUILD b/system/nvi/APKBUILD
new file mode 100644
index 000000000..3f5bf0eb9
--- /dev/null
+++ b/system/nvi/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=nvi
+pkgver=1.79
+pkgrel=0
+pkgdesc="Berkeley text editor"
+url="https://sites.google.com/a/bostic.com/keithbostic/vi/"
+arch="all"
+options="!check" # No test suite.
+license="BSD-4-Clause-UC"
+depends=""
+makedepends="ncurses-dev"
+subpackages="$pkgname-doc"
+source="https://sites.google.com/a/bostic.com/keithbostic/files/nvi-$pkgver.tar.gz
+ build-fix.patch
+ "
+
+build() {
+ cd "$builddir"/build
+ # Note! --disable-curses means disable *builtin* curses.
+ # It makes vi(1) use ncurses instead. That is what we want.
+ LIBS="-ltinfow" ./configure \
+ --prefix=/usr \
+ --mandir="$pkgdir"/usr/share/man \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --disable-curses
+ make
+}
+
+package() {
+ cd "$builddir"/build
+ mkdir -p "$pkgdir"
+ make prefix="$pkgdir"/usr install
+ mv "$pkgdir"/usr/bin/ex "$pkgdir"/usr/bin/ex.nvi
+ mv "$pkgdir"/usr/bin/view "$pkgdir"/usr/bin/view.nvi
+}
+
+sha512sums="d1d8adb2aeeee127f5e6fe5cc8b9e3e26fe22084075d17cceecd9cee7956131becee764d721af69626d60d6d75873d5073dc9817995f0274ed307e044921a1d0 nvi-1.79.tar.gz
+591f28094731a438841ce806db870592b659dbe2548de438005adb706d2dab0d9817531b07c77c6aa3c8d6cfc7739b485c6835aed174cb84b219f978a5ae5f51 build-fix.patch"