abinfo "Dropping executable bits from configurations and data ..."
chmod -v a-x "$PKGDIR"/etc/pam.d/*
chmod -v a-x "$PKGDIR"/etc/vmware-tools/*.conf
chmod -v a-x "$PKGDIR"/etc/vmware-tools/vgauth/schemas/*

abinfo "Dropping bundled fonts ..."
rm -fv "$PKGDIR"/usr/share/doc/open-vm-tools/api/html/FreeSans.ttf

abinfo "Removing a /usr/sbin symlink ..."
rm -rfv "$PKGDIR"/sbin

abinfo "Tweaking and installing .desktop entry ..."
sed -e "s|^Encoding.*$||g" \
    -i "$SRCDIR"/vmware-user-suid-wrapper/vmware-user.desktop
install -Dvm0644 "$SRCDIR"/vmware-user-suid-wrapper/vmware-user.desktop \
    "$PKGDIR"/usr/share/applications/vmware-user.desktop

abinfo "Installing vmware-xdg-detect-de ..."
install -Dvm0755 "$SRCDIR"/scripts/common/vmware-xdg-detect-de \
    "$PKGDIR"/usr/bin/vmware-xdg-detect-de

abinfo "Setting executable bit on vmware-user-suid-wrapper ..."
chmod -v +x "$PKGDIR"/usr/bin/vmware-user-suid-wrapper
