void-packages/srcpkgs/open-vm-tools/template
Piraty 911e4cd289 open-vm-tools: update to 11.3.0.
1001-pr383-rename-poll-vm_poll.patch failed to rename a header file
after 2fd8d4df94 ("srcpkgs/o*: convert patches to -Np1")
2021-06-22 14:24:38 +02:00

48 lines
1.6 KiB
Bash

# Template file for 'open-vm-tools'
pkgname=open-vm-tools
version=11.3.0
revision=1
archs="x86_64* i686* aarch64*"
wrksrc="open-vm-tools-stable-${version}"
build_wrksrc="open-vm-tools"
build_style=gnu-configure
configure_args="--sbindir=/usr/bin --with-udev-rules-dir=/usr/lib/udev/rules.d
--without-xmlsecurity --without-kernel-modules
$(vopt_with x11 x) $(vopt_with pam)"
hostmakedepends="automake libtool pkg-config glib-devel rpcsvc-proto"
makedepends="fuse-devel glib-devel libmspack-devel openssl-devel libtirpc-devel
libxerces-c-devel procps-ng-devel $(vopt_if pam 'pam-devel')
$(vopt_if x11 'gtkmm-devel libXtst-devel xmlsec1-devel')"
short_desc="Open source implementation of VMware Tools"
maintainer="Piraty <piraty1@inbox.ru>"
license="GPL-2.0-only, LGPL-2.1-only"
homepage="https://github.com/vmware/open-vm-tools"
changelog="https://github.com/vmware/open-vm-tools/blob/master/open-vm-tools/ChangeLog"
distfiles="https://github.com/vmware/open-vm-tools/archive/stable-${version}.tar.gz"
checksum=588f1b6252c36bc55581aa3451a47880290f38ef46aad493710bcf4ce3c7635e
build_options="pam x11"
build_options_default="pam x11"
if [ "$XBPS_TARGET_LIBC" != "glibc" ]; then
configure_args+=" --disable-glibc-check"
fi
pre_configure() {
autoreconf -vfi
}
post_install() {
# Get rid of unwanted symlinks
rm ${DESTDIR}/sbin/mount.vmhgfs
rm -r ${DESTDIR}/sbin
# If X11 enabled, copy extra files
if [ "$build_option_x11" ]; then
vmkdir /etc/xdg/autostart
vinstall vmware-user-suid-wrapper/vmware-user.desktop 0644 /etc/xdg/autostart/
vbin scripts/common/vmware-xdg-detect-de
chmod 07755 ${DESTDIR}/usr/bin/vmware-user-suid-wrapper
fi
# Install service
vsv vmtoolsd
}