This commit is contained in:
2026-08-18 02:10:54 -04:00
parent 6ad165160e
commit e65dcbb790
5 changed files with 114 additions and 24 deletions
+36
View File
@@ -0,0 +1,36 @@
/*
* vim — the editor.
*
* Links the store ncurses for the terminal UI (--with-tlib=ncurses).
* The GitHub archive URL needs the explicit -o name (basename would be
* the tag). The sh/vi symlinks are distro-managed.
*/
package "vim" {
const version = "9.2.0967"
const source = "https://github.com/vim/vim/archive/refs/tags/v${version}.tar.gz"
sha256 = "12873dde4981e771c51f20a5afba96f5982f4b022cbea1beb392924a0a4de0f7"
license = "Vim"
provides = ["vim"]
depends = [
{ name = "ncurses" },
{ name = "make" },
]
prepare {
curl -L -o vim-${version}.tar.gz ${source}
echo "12873dde4981e771c51f20a5afba96f5982f4b022cbea1beb392924a0a4de0f7 vim-${version}.tar.gz" | sha256sum -c -
tar xf vim-${version}.tar.gz --strip-components=1
ROOT=$KAPPA_ROOT; [ -z $ROOT ] && ROOT=/usr/local/kappa; if [ -d $ROOT/temp/ncurses/destdir/usr ]; then echo $ROOT/temp/ncurses/destdir/usr; else echo $ROOT/bin/$(grep '^ncurses ' $ROOT/db/installed | tail -1 | cut -d' ' -f3)/usr; fi > ncurses.path
}
build {
CPPFLAGS=-I$(cat ncurses.path)/include LDFLAGS=-L$(cat ncurses.path)/lib ./configure --prefix=${prefix} --with-tlib=ncurses
make -j${jobs}
}
install {
make DESTDIR=${destdir} install
}
}