30 lines
891 B
Text
30 lines
891 B
Text
# Build template file for 'gvim'.
|
|
#
|
|
# Source vim template and overwrite some vars, it's stupid
|
|
# to duplicate all this stuff again!
|
|
#
|
|
. ${XBPS_SRCPKGDIR}/vim/template
|
|
unset subpackages revision
|
|
|
|
pkgname=gvim
|
|
revision=1
|
|
configure_args="${configure_args} --enable-gui=gtk2 --with-x --with-vim-name=gvim"
|
|
make_install_target="-C src DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version} installvimbin install-icons"
|
|
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
|
depends="desktop-file-utils hicolor-icon-theme"
|
|
makedepends="mercurial pkg-config gtk+-devel"
|
|
short_desc="${short_desc} (GTK+ GUI)"
|
|
long_desc="${long_desc}
|
|
|
|
This packages contains gvim, the GTK+ GUI version of vim."
|
|
|
|
pre_install() {
|
|
sed -i "s|/locolor|/hicolor|g" src/Makefile
|
|
for d in 16 32 48; do
|
|
vmkdir usr/share/icons/hicolor/${d}x${d}/apps
|
|
done
|
|
}
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/gvim.desktop 644 usr/share/applications
|
|
}
|