updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xe-guest-utilities / PKGBUILD
blob4c40eaf0c0cc06bd4208d7fb76e4164777c339ad
1 # Contributor: Krzysztof Raczkowski <raczkow@gnu-tech.pl>
3 pkgname=xe-guest-utilities
4 pkgver=6.0.0
5 pkgrel=5
6 pkgdesc="Citrix XenServer Tools"
7 arch=('i686' 'x86_64')
8 url="http://citrix.com/English/ps2/products/product.asp?contentID=683148&ntref=hp_nav_US"
9 license=('GPL' 'LGPL')
10 optdepends=('linux: DomU kernel for x86_64'
11             'linux-xen: DomU kernel for i686'
12             'kernel-lts-xen: DomU kernel for i686 (long time supported)')
13 makedepends=('rpmextract')
14 source=(ftp://ftp.prz.edu.pl/pub/archlinux/archrak/src/xe-guest-utilities-${pkgver}-743.i386.rpm
15         ftp://ftp.prz.edu.pl/pub/archlinux/archrak/src/xe-guest-utilities-xenstore-${pkgver}-743.i386.rpm
16         ftp://ftp.prz.edu.pl/pub/archlinux/archrak/src/xe-guest-utilities-${pkgver}-743.x86_64.rpm
17         ftp://ftp.prz.edu.pl/pub/archlinux/archrak/src/xe-guest-utilities-xenstore-${pkgver}-743.x86_64.rpm
18         xe-guest-utilities-archlinux.patch
19         ip_address.patch)
21 md5sums=('894d33028b2712650be324b7ba01c6c4'
22          'e100f97421ff522cb228aa749881a082'
23          'ffaf02afa2105d32e011a32c80921256'
24          '9b9570b5cc27832df303c8ef9cd11d36'
25          'cf3dda772c4a91b1231391dced964851'
26          '86b4a69b412f874bf5b4db8ac8858644')
28 build() {
29   cd $startdir/src
30   [ $CARCH == "i686" ] && ( 
31     rpmextract.sh xe-guest-utilities-*.i386.rpm && \
32     rpmextract.sh xe-guest-utilities-xenstore-*.i386.rpm || return 1
33   )
34   [ $CARCH == "x86_64" ] && ( 
35     rpmextract.sh xe-guest-utilities-*.x86_64.rpm && \
36     rpmextract.sh xe-guest-utilities-xenstore-*.x86_64.rpm || return 1
37   )
39   patch -Np1 -i ${srcdir}/xe-guest-utilities-archlinux.patch || return 1
40   patch -Np1 -i ${srcdir}/ip_address.patch || return 1
42   cp -ra ${srcdir}/{etc,usr} ${pkgdir}/ || return 1
43   mv ${pkgdir}/etc/init.d ${pkgdir}/etc/rc.d