From 9036e1b7cb044d68861e173e158932ec8af73e91 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 20 Oct 2011 18:03:00 +0200 Subject: [PATCH] xf86-video-ati-git-snapshot: added a virtualpkg.d plist file. --- .../files/xf86-video-ati-git-snapshot.virtualpkgd | 10 ++++++++++ srcpkgs/xf86-video-ati-git-snapshot/template | 12 +++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/xf86-video-ati-git-snapshot/files/xf86-video-ati-git-snapshot.virtualpkgd 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 . +}