# Contributor: Ian Bashford # Maintainer: Ian Bashford pkgname=xe-guest-utilities pkgver=7.11.0 pkgrel=0 pkgdesc="XenServer guest tools" url="https://github.com/xenserver/xe-guest-utilities" arch="x86 x86_64" license="BSD-2-Clause" depends= makedepends="go udev" install= subpackages="${pkgname}-udev:udev:noarch $pkgname-openrc" options="!check" source="${pkgname}-${pkgver}.tar.gz::https://github.com/xenserver/${pkgname}/archive/v${pkgver}.tar.gz $pkgname.initd " builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" make } package() { mkdir -p "$pkgdir" cp -ar "${builddir}/build/stage/usr/" "$pkgdir/" install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname } udev() { pkgdesc="udev rules for CPU hotplugging when running as Xen DomU" depends="udev" udev_dir="etc/udev/rules.d" mkdir -p "${subpkgdir}/${udev_dir}" filename="z10_xen-vcpu-hotplug.rules" install -m644 -D "${builddir}/build/stage/${udev_dir}/${filename}" "${subpkgdir}/${udev_dir}/${filename}" } sha512sums="a047095d98fbcbe271f2c7354c3585cd180fcb5f33c16b4b43fc600b627f1eb996b28e45ac5d2a4ed4a3b0d420caa26f7957fdcd7b46243266dafda7a2602025 xe-guest-utilities-7.11.0.tar.gz 3e898b473f6e71ecc5b820717df0a460b31756b68f4bb9bf454df39f430e64ca5e33582c03bfea044d93f49937883fe9b6807c31dee72307750de670bfca8bcd xe-guest-utilities.initd"