vim-x11: added a virtualpkg.d plist file.
This commit is contained in:
parent
a08922e359
commit
f2ee949166
2 changed files with 18 additions and 3 deletions
10
srcpkgs/vim-x11/files/vim-x11.virtualpkgd
Normal file
10
srcpkgs/vim-x11/files/vim-x11.virtualpkgd
Normal 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>
|
|
@ -6,7 +6,7 @@
|
|||
. ${XBPS_SRCPKGDIR}/vim/template
|
||||
unset subpackages
|
||||
pkgname=vim-x11
|
||||
revision=3
|
||||
revision=4
|
||||
configure_args="${configure_args} --enable-gui=no --with-x"
|
||||
short_desc="${short_desc} (x11)"
|
||||
long_desc="${long_desc}
|
||||
|
@ -23,10 +23,15 @@ Add_dependency run libICE
|
|||
|
||||
Add_dependency build pkg-config
|
||||
Add_dependency build libXt-devel
|
||||
Add_dependency build libX11-devel
|
||||
Add_dependency build libICE-devel
|
||||
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue