description="GTK version of the vim editor"
url="http://www.vim.org/"

license="custom:VIM"

contributors="Fanch,Greg,Tnut"
packager="spiky <spiky@nutyx.org>"

makedepends=(vim gtk3 xorg-libxt)
run=(vim)

name=gvim
version=9.1.0707

PKGMK_KEEP_SOURCES="no"

source=(https://github.com/vim/vim/archive/v$version/vim-$version.tar.gz)

build () {

    cd vim-$version/src
    
    ./configure --prefix=/usr \
                --with-features=huge \
                --with-vim-name=gvim \
                --enable-gui=gtk3 \
                --with-tlib=ncursesw

    make
    make runtime
    make DESTDIR=$PKG installvimbin
    make DESTDIR=$PKG install-icons

install -Dm644 ../LICENSE $PKG/usr/share/licenses/$name/LICENSE
}
