pcre2: bump to 10.40
[kiss-trunc88.git] / nvi2 / build
blob0b832168d061a8d198abea6cb97feab76f357626
1 #!/bin/sh -e
3 export DESTDIR="$1"
5 cmake -B build \
6 -DCMAKE_INSTALL_PREFIX=/usr \
7 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
8 -DCMAKE_BUILD_TYPE=None
10 cmake --build build
11 mkdir -p "$1/usr/bin"
12 mkdir -p "$1/usr/share/man/man1"
13 cp build/nvi "$1/usr/bin/nvi"
14 cp man/vi.1 "$1/usr/share/man/man1/"
16 cd "$1/usr/bin"
17 ln -s "nvi" "vi"