xf86-video-ati-git-snapshot: added a virtualpkg.d plist file.

This commit is contained in:
Juan RP 2011-10-20 18:03:00 +02:00
parent 9b6e518d99
commit 9036e1b7cb
2 changed files with 21 additions and 1 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>@@PROVIDES@@</string>
<key>target-pkgpattern</key>
<string>@@REPLACES@@</string>
</dict>
</plist>

View File

@ -8,7 +8,7 @@ long_desc="
This is the video driver for ATI Radeon cards for the Xorg X11 server."
replaces="xf86-video-ati>=0"
provides="xf86-video-ati-9999"
provides="xf86-video-ati-6.15"
nofetch=yes
noextract=yes
@ -40,3 +40,13 @@ do_fetch() {
pre_configure() {
./autogen.sh
}
post_install() {
vinstall ${FILESDIR}/${pkgname}.virtualpkgd \
644 etc/xbps/virtualpkg.d ${pkgname}.plist
sed -i "s|@@PROVIDES@@|${provides}|;s|@@REPLACES@@|${replaces}|" \
${DESTDIR}/etc/xbps/virtualpkg.d/${pkgname}.plist
vmkdir etc/xbps/virtualpkg.d.wants
cd ${DESTDIR}/etc/xbps/virtualpkg.d.wants && \
ln -sf ../virtualpkg.d/${pkgname}.plist .
}