49 lines
1.1 KiB
Python
49 lines
1.1 KiB
Python
from lib import cpp
|
|
from lib.make import *
|
|
|
|
upstream_version = "9.2.782"
|
|
|
|
version(upstream_version)
|
|
description("vim, a greatly improved version of the good old UNIX editor Vi")
|
|
source_url("https://github.com/vim/vim/archive/refs/tags/v9.2.0782.tar.gz")
|
|
|
|
builddep("shortcut/c")
|
|
builddep("shortcut/autotools")
|
|
builddep(f"libncurses-dev @{arch.get_target()}")
|
|
|
|
|
|
def build():
|
|
cpp.configure(
|
|
[
|
|
"--prefix=/",
|
|
f"--bindir={get_prefix('vim')}/bin",
|
|
"--datarootdir=/share",
|
|
f"--datadir={get_prefix('vim-data')}/share",
|
|
"--enable-terminal",
|
|
"--enable-autoservername",
|
|
"--enable-multibyte",
|
|
"--disable-nls",
|
|
]
|
|
)
|
|
cpp.make()
|
|
cpp.make_install()
|
|
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack_data(composer):
|
|
composer.makedirs("share/vim")
|
|
composer.add_dir("share/vim/vim92", "share/vim/vim92")
|
|
|
|
|
|
package("vim-data")
|
|
arch_any()
|
|
on_pack(pack_data)
|
|
|
|
package("vim")
|
|
dep("semi-libc @same-arch")
|
|
dep("libncurses @same-arch")
|
|
dep(f"vim-data (={upstream_version}) @any")
|
|
cpp.use_auto_pack(["bin"])
|