2011-07-03 03:34:13 +02:00
|
|
|
# Build template file for 'vim-x11'.
|
|
|
|
#
|
|
|
|
# Source vim template and overwrite some vars, it's stupid
|
|
|
|
# to duplicate all this stuff again!
|
|
|
|
#
|
|
|
|
. ${XBPS_SRCPKGDIR}/vim/template
|
|
|
|
unset subpackages
|
|
|
|
pkgname=vim-x11
|
|
|
|
configure_args="${configure_args} --enable-gui=no --with-x"
|
|
|
|
short_desc="${short_desc} (x11)"
|
|
|
|
long_desc="${long_desc}
|
|
|
|
|
|
|
|
This packages contains vim-x11, the x11 capable version of vim."
|
|
|
|
|
2011-07-03 12:16:14 +02:00
|
|
|
provides="vim-${version}"
|
|
|
|
replaces="vim>=${version}"
|
2011-07-03 03:34:13 +02:00
|
|
|
|
|
|
|
Add_dependency run libXt
|
|
|
|
Add_dependency run libX11
|
|
|
|
Add_dependency run libSM
|
|
|
|
Add_dependency run libICE
|
|
|
|
|
|
|
|
Add_dependency build pkg-config
|
|
|
|
Add_dependency build libXt-devel
|
2011-07-03 12:16:14 +02:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
2011-10-20 17:34:22 +02:00
|
|
|
vmkdir etc/xbps/virtualpkg.d.wants
|
|
|
|
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
|
2011-10-20 18:03:55 +02:00
|
|
|
644 etc/xbps/virtualpkg.d ${pkgname}.plist
|
2011-10-20 17:34:22 +02:00
|
|
|
sed -i "s|@@PKGNAME@@|${pkgname}|;s|@@VERSION@@|${version}|" \
|
2011-10-20 18:03:55 +02:00
|
|
|
${DESTDIR}/etc/xbps/virtualpkg.d/${pkgname}.plist
|
2011-10-20 17:34:22 +02:00
|
|
|
cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \
|
2011-10-20 18:03:55 +02:00
|
|
|
ln -sf ../virtualpkg.d/${pkgname}.plist .
|
2011-07-03 12:16:14 +02:00
|
|
|
rm -rf ${DESTDIR}/usr/share
|
|
|
|
}
|