pkgs/vim/PKGBUILD

47 lines
1.1 KiB
Text
Raw Normal View History

2023-12-08 02:05:38 +00:00
# Maintainer: Daryl Ronningen <relms@relms.dev>
pkgname=vim
pkgver=9.0.2153
pkgrel=1
2023-12-08 02:05:38 +00:00
pkgdesc="Vi Improved, a highly configurable, improved version of the vi text editor"
url="https://www.vim.org"
arch=("x86_64")
license=("custom:vim")
source=("https://github.com/vim/vim/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=("94cb108fa9c5454d295ace27fc47b130b68febdc8910dd6d2d899a8531840dde")
build() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
./configure \
--prefix=/usr \
--localstatedir=/var/lib/vim \
--with-features=huge \
--with-compiledby="Ikeda Linux" \
--with-x=no \
--disable-gui \
--enable-multibyte \
--enable-perlinterp=dynamic \
--enable-python3interp=dynamic \
--enable-rubyinterp=dynamic \
--enable-luainterp=dynamic \
--enable-tclinterp=dynamic \
--disable-canberra
make
}
package_vim() {
2023-12-08 02:05:38 +00:00
cd $pkgname-$pkgver
make VIMRCLOC=/etc DESTDIR=$pkgdir install
2023-12-08 02:05:38 +00:00
# remove gvim.desktop as not included
rm $pkgdir/usr/share/applications/gvim.desktop
2023-12-08 02:05:38 +00:00
ln -s vim $pkgdir/usr/bin/vi
2023-12-08 02:05:38 +00:00
# license
install -Dm 644 runtime/doc/uganda.txt \
$pkgdir/usr/share/licenses/$pkgname/license.txt
}