summaryrefslogtreecommitdiff
path: root/core/openvi/MAKEPKG
blob: a431130e43592f1669bb2a87c7d81063b36a033e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/mkpkg
# description: OpenVi is a portable fork of the OpenBSD vi editor
# url: https://github.com/johnsonjh/OpenVi/

name=openvi
version=7.9.33
release=1
depends=(ncurses)
source=(https://github.com/johnsonjh/OpenVi/archive/refs/tags/${version}.tar.gz)
renames=($name-$version.tar.gz)

sha256sums=(
    "3b807837b8458609b37e107fa063160298ee3655998dd8df590885c297af1fd3"
)

build() {
    cd OpenVi-"${version}"

    make CC="${CC:-cc}"
    make PREFIX=/ MANDIR=/usr/share/man DESTDIR="${PKG}" install

    rm -rf $PKG/libexec

    ln -sf ovi $PKG/bin/vi
    ln -sf ovi $PKG/bin/ex

    rm -rf $PKG/share
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh