vim-x11: added a virtualpkg.d plist file.

This commit is contained in:
Juan RP 2011-10-20 17:34:22 +02:00
parent a08922e359
commit f2ee949166
2 changed files with 18 additions and 3 deletions

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>virtual-pkgver</key>
<string>vim-@@VERSION@@</string>
<key>target-pkgpattern</key>
<string>@@PKGNAME@@>=@@VERSION@@</string>
</dict>
</plist>

View file

@ -6,7 +6,7 @@
. ${XBPS_SRCPKGDIR}/vim/template . ${XBPS_SRCPKGDIR}/vim/template
unset subpackages unset subpackages
pkgname=vim-x11 pkgname=vim-x11
revision=3 revision=4
configure_args="${configure_args} --enable-gui=no --with-x" configure_args="${configure_args} --enable-gui=no --with-x"
short_desc="${short_desc} (x11)" short_desc="${short_desc} (x11)"
long_desc="${long_desc} long_desc="${long_desc}
@ -23,10 +23,15 @@ Add_dependency run libICE
Add_dependency build pkg-config Add_dependency build pkg-config
Add_dependency build libXt-devel Add_dependency build libXt-devel
Add_dependency build libX11-devel
Add_dependency build libICE-devel
post_install() post_install()
{ {
vmkdir etc/xbps/virtualpkg.d.wants
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname}
sed -i "s|@@PKGNAME@@|${pkgname}|;s|@@VERSION@@|${version}|" \
${DESTDIR}/etc/xbps/virtualpkg.d/${pkgname}
cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \
ln -sf ../virtualpkg.d/${pkgname} .
rm -rf ${DESTDIR}/usr/share rm -rf ${DESTDIR}/usr/share
} }