# $Id$ # Maintainer: Sergej Pupykin # Contributor: Krzysztof Raczkowski pkgname=open-vm-tools epoch=6 pkgver=10.2.0 pkgrel=1 pkgdesc='The Open Virtual Machine Tools (open-vm-tools) are the open source implementation of VMware Tools' arch=('x86_64') url='https://github.com/vmware/open-vm-tools' license=('LGPL') depends=('libdnet' 'icu' 'procps-ng' 'uriparser' 'libsigc++' 'libxss' 'iproute2' 'fuse2' 'lsb-release' 'libmspack') makedepends=('chrpath' 'doxygen' 'gtkmm3' 'libxtst' 'python') optdepends=('gtkmm3: DnD/CP plugin' 'libxtst: DnD/CP, resolution set plugins' 'netctl: suspend-resume network state' 'networkmanager: suspend-resume network state') backup=('etc/xdg/autostart/vmware-user.desktop') options=('docs') source=("$pkgname-$pkgver.tar.gz::https://github.com/vmware/open-vm-tools/archive/stable-${pkgver/_/-}.tar.gz" 'vmtoolsd.service' 'vmware-vmblock-fuse.service' 'https://github.com/vmware/open-vm-tools/commit/c5bc784da611ee929e0da7c20a410e03e6540613.patch') sha256sums=('40dccff0630034b4985ac7a0d3bfcf89025e9a57f518e561db8c6fd7322bf029' '5a9403f78356873258521644068f2c9639b994d5954e5ad953934136822b2689' '99e3cc1da20a751049144cc02dec77174a55109b5b5960e1facd78709da7724f' '0adad94c3cdd748e8b809456972f9248412265cd4c2edec9391d977232330b32') prepare() { cd "$srcdir/$pkgname-"*/ patch -p1 < ../c5bc784da611ee929e0da7c20a410e03e6540613.patch } build() { cd "$srcdir/$pkgname-"*"/open-vm-tools" autoreconf -vi sh ./configure --prefix=/usr \ --sbindir=/usr/bin \ --sysconfdir=/etc \ --with-udev-rules-dir=/usr/lib/udev/rules.d \ --without-xmlsecurity \ --without-kernel-modules make } package() { cd "$srcdir/$pkgname-"*"/open-vm-tools" make install DESTDIR="$pkgdir" chmod 7755 "$pkgdir"/usr/bin/vmware-user-suid-wrapper # install vmware-xdg-detect-de install -D -m 0755 scripts/common/vmware-xdg-detect-de "$pkgdir"/usr/bin/vmware-xdg-detect-de # We don't want a symlink in /sbin rm "$pkgdir"/sbin/mount.vmhgfs rmdir "$pkgdir"/sbin # install systemd files install -Dm644 "$srcdir"/vmtoolsd.service "$pkgdir"/usr/lib/systemd/system/vmtoolsd.service install -Dm644 "$srcdir"/vmware-vmblock-fuse.service "$pkgdir"/usr/lib/systemd/system/vmware-vmblock-fuse.service }