summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShokara Kou <kou@13f0.net>2022-04-23 20:49:51 -0400
committerShokara Kou <kou@13f0.net>2022-12-10 16:12:53 -0500
commit4f070a0a70a40f06450e32ec5526fab598287543 (patch)
tree617e3b406d4f4584c5974cff7ed5ccc92383628b
parentecfd3f8abde7d35feb2a3fe016f2ef113b19c804 (diff)
add vi
-rw-r--r--vi/.footprint8
-rw-r--r--vi/.md5sum1
-rw-r--r--vi/Pkgfile26
3 files changed, 35 insertions, 0 deletions
diff --git a/vi/.footprint b/vi/.footprint
new file mode 100644
index 0000000..4293ec5
--- /dev/null
+++ b/vi/.footprint
@@ -0,0 +1,8 @@
1drwxr-xr-x root/root usr/
2drwxr-xr-x root/root usr/bin/
3-rwxr-xr-x root/root usr/bin/ex
4-rwxr-xr-x root/root usr/bin/vi
5drwxr-xr-x root/root usr/share/
6drwxr-xr-x root/root usr/share/man/
7drwxr-xr-x root/root usr/share/man/man1/
8-rw-r--r-- root/root usr/share/man/man1/vi.1.gz
diff --git a/vi/.md5sum b/vi/.md5sum
new file mode 100644
index 0000000..bf727db
--- /dev/null
+++ b/vi/.md5sum
@@ -0,0 +1 @@
765e2153f5fc4f21793f2edc2647305a nvi-1.79.tar.gz
diff --git a/vi/Pkgfile b/vi/Pkgfile
new file mode 100644
index 0000000..e940955
--- /dev/null
+++ b/vi/Pkgfile
@@ -0,0 +1,26 @@
1# Description: Freely redistributable implementation originally from 4BSD ex/vi
2# URL: http://www.bostic.com/vi
3# Maintainer: Shokara Kou, kou at 13f0 dot net
4# Depends on: ncurses
5
6name=vi
7version=1.79
8release=1
9source=(https://sites.google.com/a/bostic.com/keithbostic/files/n$name-$version.tar.gz)
10
11build() {
12 cd n$name-$version
13
14 sed -i 's/ifdef HAVE_SYS5_PTY/if 0/' ex/ex_script.c
15
16 LDFLAGS=-lncurses CFLAGS="$CFLAGS -fcommon" ./build/configure \
17 --prefix=/usr \
18 --disable-curses
19
20 make
21
22 install -Dm755 nvi $PKG/usr/bin/vi
23 install -Dm755 nex $PKG/usr/bin/ex
24 gzip docs/USD.doc/vi.man/vi.1
25 install -Dm644 docs/USD.doc/vi.man/vi.1.gz -t $PKG/usr/share/man/man1
26}