diff --git a/PACKAGES.db b/PACKAGES.db index 12e6de8..70c2152 100644 --- a/PACKAGES.db +++ b/PACKAGES.db @@ -147,3 +147,14 @@ arch=x86_64 size=15597084 filename=packages/openbox-3.6.1-1-x86_64.wpkg sha256=943e1944a2006fc7c3f4b21a135a4157a91463be0995ebba6788baaed1f28370 + +name=vim +version=9.1.0707 +release=1 +description=Zaawansowany edytor tekstu (Vim 9.1 z kolorowaniem skladni i xxd) +depends= +arch=x86_64 +size=6474212 +filename=packages/vim-9.1.0707-1-x86_64.wpkg +sha256=886dc685c922f3d5873e309491db5c767eaca3a5bd9bce1dd8d359c699747794 + diff --git a/packages/vim-9.1.0707-1-x86_64.wpkg b/packages/vim-9.1.0707-1-x86_64.wpkg new file mode 100644 index 0000000..61a5fc3 Binary files /dev/null and b/packages/vim-9.1.0707-1-x86_64.wpkg differ diff --git a/recipes/vim/WPKGBUILD b/recipes/vim/WPKGBUILD new file mode 100644 index 0000000..ed98e4b --- /dev/null +++ b/recipes/vim/WPKGBUILD @@ -0,0 +1,33 @@ +#!/bin/bash +# Receptura pakietu vim dla wpkg + +pkgname=vim +pkgver=9.1.0707 +pkgrel=1 +pkgdesc="Zaawansowany i konfigurowalny edytor tekstu (Vim 9.1 z syntax i xxd)" +arch=x86_64 +url="https://www.vim.org" +depends=() +source="https://github.com/vim/vim/archive/refs/tags/v${pkgver}.tar.gz" +sha256sum="SKIP" + +build() { + cd "${pkgname}-${pkgver}" + ./configure \ + --prefix=/usr \ + --with-features=huge \ + --enable-multibyte \ + --disable-gui \ + --without-x \ + --disable-nls \ + --with-tlib=ncursesw \ + CC=musl-gcc + make -j$(nproc) +} + +package() { + cd "${pkgname}-${pkgver}" + make DESTDIR="${PKGDIR}" install + ln -sf vim "${PKGDIR}/usr/bin/vi" + ln -sf vim "${PKGDIR}/usr/bin/view" +}