# Contributor: Krzysztof Raczkowski # Contributor (Parabola): André Silva pkgname=xe-guest-utilities pkgver=6.0.2 pkgrel=1 pkgdesc="Citrix XenServer Tools" arch=('i686' 'x86_64') url="http://citrix.com/English/ps2/products/product.asp?contentID=683148&ntref=hp_nav_US" license=('GPL' 'LGPL') optdepends=('linux-libre: DomU kernel for x86_64' 'linux-libre-xen: DomU kernel for i686' 'linux-libre-lts-xen: DomU kernel for i686 (long time supported)') makedepends=('rpmextract') source=(ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-${pkgver}-756.i386.rpm ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-xenstore-${pkgver}-756.i386.rpm ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-${pkgver}-756.x86_64.rpm ftp://ftp.prz.edu.pl/pub/archlinux/aur/src/xe-guest-utilities-xenstore-${pkgver}-756.x86_64.rpm xe-guest-utilities-parabola.patch ip_address.patch) md5sums=('7f1b670b6fec6f55764bc19ead41b07d' '7d9a2c9db65d76f93a5df709989915af' '953e858c03570105ea855fc3b32d43ff' '5cb44deb684f7069b05052ed92d0ac22' '0d8a8ebe124d585a2b101150df8f5ff7' '86b4a69b412f874bf5b4db8ac8858644') build() { cd $startdir/src [ $CARCH == "i686" ] && ( rpmextract.sh xe-guest-utilities-*.i386.rpm && \ rpmextract.sh xe-guest-utilities-xenstore-*.i386.rpm || return 1 ) [ $CARCH == "x86_64" ] && ( rpmextract.sh xe-guest-utilities-*.x86_64.rpm && \ rpmextract.sh xe-guest-utilities-xenstore-*.x86_64.rpm || return 1 ) patch -Np1 -i ${srcdir}/xe-guest-utilities-parabola.patch || return 1 patch -Np1 -i ${srcdir}/ip_address.patch || return 1 cp -ra ${srcdir}/{etc,usr} ${pkgdir}/ || return 1 mv ${pkgdir}/etc/init.d ${pkgdir}/etc/rc.d }