diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-08 00:59:32 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-08-08 00:59:32 +0000 |
commit | 2d3e8aa285af56be924d1d91eb019b92f7b8e62d (patch) | |
tree | d530a5ead244f228bf00975958b54e8c296a9f78 /system/nvi/APKBUILD | |
parent | cba30bea183bc56f4b6e48d43cbc7d4266081838 (diff) | |
download | packages-2d3e8aa285af56be924d1d91eb019b92f7b8e62d.tar.gz packages-2d3e8aa285af56be924d1d91eb019b92f7b8e62d.tar.bz2 packages-2d3e8aa285af56be924d1d91eb019b92f7b8e62d.tar.xz packages-2d3e8aa285af56be924d1d91eb019b92f7b8e62d.zip |
system/nvi: new package
Diffstat (limited to 'system/nvi/APKBUILD')
-rw-r--r-- | system/nvi/APKBUILD | 40 |
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" |