diff --git a/srcpkgs/xf86-video-ati-git-snapshot/files/xf86-video-ati-git-snapshot.virtualpkgd b/srcpkgs/xf86-video-ati-git-snapshot/files/xf86-video-ati-git-snapshot.virtualpkgd new file mode 100644 index 00000000000..257eedd241b --- /dev/null +++ b/srcpkgs/xf86-video-ati-git-snapshot/files/xf86-video-ati-git-snapshot.virtualpkgd @@ -0,0 +1,10 @@ + + + + + virtual-pkgver + @@PROVIDES@@ + target-pkgpattern + @@REPLACES@@ + + diff --git a/srcpkgs/xf86-video-ati-git-snapshot/template b/srcpkgs/xf86-video-ati-git-snapshot/template index 34d0de50b3e..41c660280ec 100644 --- a/srcpkgs/xf86-video-ati-git-snapshot/template +++ b/srcpkgs/xf86-video-ati-git-snapshot/template @@ -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 . +}