void-packages/srcpkgs/xf86-video-ati-git-snapshot/template

52 lines
1.5 KiB
Text

# Template build file for 'xf86-video-ati'.
pkgname=xf86-video-ati-git-snapshot
version="$(date -u +%Y%m%d)"
build_style=gnu_configure
short_desc="Xorg ATI Radeon video driver (git snapshot)"
maintainer="Juan RP <xtraeme@gmail.com>"
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-6.15"
nofetch=yes
noextract=yes
Add_dependency run glibc
Add_dependency run libudev
Add_dependency run libpciaccess
Add_dependency run libdrm
Add_dependency run pixman
Add_dependency run xorg-server
Add_dependency build git
Add_dependency build automake
Add_dependency build pkg-config
Add_dependency build randrproto
Add_dependency build libudev-devel
Add_dependency build libpciaccess-devel
Add_dependency build libdrm-devel
Add_dependency build libXrandr-devel
Add_dependency build pixman-devel
Add_dependency build xorg-util-macros
Add_dependency build xorg-server-devel
do_fetch() {
local url="git://anongit.freedesktop.org/xorg/driver/xf86-video-ati"
msg_normal " Fetching from master git repository...\n"
git clone ${url} ${pkgname}-${version}
}
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 .
}