2010-01-21 03:36:01 +01:00
|
|
|
# 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
|
2011-07-07 17:27:39 +02:00
|
|
|
unset subpackages revision
|
2010-01-21 03:36:01 +01:00
|
|
|
|
|
|
|
pkgname=gvim
|
|
|
|
configure_args="${configure_args} --enable-gui=gtk2 --with-x
|
|
|
|
--with-vim-name=gvim"
|
|
|
|
make_install_target="-C src
|
2010-05-17 21:47:55 +02:00
|
|
|
DESTDIR=${XBPS_DESTDIR}/${pkgname}-${version} installvimbin install-icons"
|
2010-01-21 03:36:01 +01:00
|
|
|
short_desc="${short_desc} (GTK+ GUI)"
|
|
|
|
long_desc="${long_desc}
|
|
|
|
|
|
|
|
This packages contains gvim, the GTK+ GUI version of vim."
|
|
|
|
|
2010-05-17 21:47:55 +02:00
|
|
|
gtk_iconcache_dirs="/usr/share/icons/hicolor"
|
2010-01-21 03:36:01 +01:00
|
|
|
|
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build gtk+-devel
|
2010-05-17 21:47:55 +02:00
|
|
|
|
|
|
|
Add_dependency full desktop-file-utils
|
|
|
|
Add_dependency full hicolor-icon-theme
|
|
|
|
|
2012-03-29 16:52:32 +02:00
|
|
|
pre_install() {
|
2011-07-07 17:27:39 +02:00
|
|
|
sed -i "s|/locolor|/hicolor|g" src/Makefile
|
2010-05-17 21:47:55 +02:00
|
|
|
for d in 16 32 48; do
|
2011-07-07 17:27:39 +02:00
|
|
|
vmkdir usr/share/icons/hicolor/${d}x${d}/apps
|
2010-05-17 21:47:55 +02:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2012-03-29 16:52:32 +02:00
|
|
|
post_install() {
|
2011-07-07 17:27:39 +02:00
|
|
|
vinstall ${FILESDIR}/gvim.desktop 644 usr/share/applications
|
2010-05-17 21:47:55 +02:00
|
|
|
}
|