crux-ports

My CRUX Linux ports
Log | Files | Refs | README

commit 4f070a0a70a40f06450e32ec5526fab598287543
parent ecfd3f8abde7d35feb2a3fe016f2ef113b19c804
Author: Shokara Kou <kou@13f0.net>
Date:   Sat, 23 Apr 2022 20:49:51 -0400

add vi

Diffstat:
Avi/.footprint | 8++++++++
Avi/.md5sum | 1+
Avi/Pkgfile | 26++++++++++++++++++++++++++
3 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/vi/.footprint b/vi/.footprint @@ -0,0 +1,8 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/ex +-rwxr-xr-x root/root usr/bin/vi +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/vi.1.gz diff --git a/vi/.md5sum b/vi/.md5sum @@ -0,0 +1 @@ +765e2153f5fc4f21793f2edc2647305a nvi-1.79.tar.gz diff --git a/vi/Pkgfile b/vi/Pkgfile @@ -0,0 +1,26 @@ +# Description: Freely redistributable implementation originally from 4BSD ex/vi +# URL: http://www.bostic.com/vi +# Maintainer: Shokara Kou, kou at 13f0 dot net +# Depends on: ncurses + +name=vi +version=1.79 +release=1 +source=(https://sites.google.com/a/bostic.com/keithbostic/files/n$name-$version.tar.gz) + +build() { + cd n$name-$version + + sed -i 's/ifdef HAVE_SYS5_PTY/if 0/' ex/ex_script.c + + LDFLAGS=-lncurses CFLAGS="$CFLAGS -fcommon" ./build/configure \ + --prefix=/usr \ + --disable-curses + + make + + install -Dm755 nvi $PKG/usr/bin/vi + install -Dm755 nex $PKG/usr/bin/ex + gzip docs/USD.doc/vi.man/vi.1 + install -Dm644 docs/USD.doc/vi.man/vi.1.gz -t $PKG/usr/share/man/man1 +}