# Maintainer: Natanael Copa pkgname=open-vm-tools pkgver=9.2.2_p893683 _pkgsubver=${pkgver#*_p} _ver=${pkgver/_p/-} pkgrel=1 pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools." url="http://open-vm-tools.sourceforge.net/" arch="all" license="LGPL" subpackages="$pkgname-gtk $pkgname-dev" install="$pkgname.pre-install" makedepends="procps-dev libdnet-dev icu-dev glib-dev pkgconfig bash icu-dev automake autoconf gtk+-dev libxext-dev libxinerama-dev libxtst-dev gtkmm-dev libnotify-dev libxrandr-dev libxcomposite-dev libice-dev libsm-dev fuse-dev libtool m4" source="http://downloads.sourceforge.net/project/open-vm-tools/open-vm-tools/stable-${pkgver%.*}.x/open-vm-tools-$_ver.tar.gz 0001-lib-misc-Recognize-Alpine-Linux.patch libm.patch werror.patch codeset-uclibc.patch iconv-uclibc.patch uclibc-stubs.patch open-vm-tools.initd " [ "$ALPINE_LIBC" != "eglibc" ] && makedepends="$makedepends rpcgen" _builddir="$srcdir"/$pkgname-$_ver prepare() { cd "$_builddir" for patch in $source; do case $patch in # we concider patches with uclibc in its name # only usefull on uclibc install *uclibc*.patch) if [ "$ALPINE_LIBC" != "eglibc" ]; then msg "Applying patch $patch" patch -p1 -i "$srcdir"/$patch || return 1 fi ;; # we do the same for eglibc *eglibc*.patch) if [ "$ALPINE_LIBC" = "eglibc" ]; then msg "Applying patch $patch" patch -p1 -i "$srcdir"/$patch || return 1 fi ;; *.patch) msg "Applying patch $patch" patch -p1 -i "$srcdir"/$patch || return 1 ;; esac done sed -i -e 's/__unused1/st_atim.tv_nsec/g' \ -e 's/__unused2/st_mtim.tv_nsec/g' \ -e 's/__unused3/st_ctim.tv_nsec/g' \ lib/file/filePosix.c lib/hgfsServer/hgfsServerLinux.c \ || return 1 # workaround automake-1.10 issue # http://ramblingfoo.blogspot.com/2007/07/required-file-configrpath-not-found.html touch config/config.rpath aclocal -I m4 && autoconf && automake } build() { export CUSTOM_PROCPS_NAME="procps" export CFLAGS="$CLFAGS -Wno-unused-but-set-variable" cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --disable-unity \ --with-dnet \ --with-icu \ --with-procps \ --with-x \ --without-kernel-modules \ --without-pam \ || return 1 make || return 1 } package() { cd "$_builddir" make install DESTDIR=$pkgdir || return 1 install -Dm755 "$srcdir"/open-vm-tools.initd \ "$pkgdir"/etc/init.d/open-vm-tools find "$pkgdir" -name '*.la' -delete } gtk() { pkgdesc="Xorg apps and plugins for open-vm-tools" mkdir -p "$subpkgdir"/usr/bin \ "$subpkgdir"/usr/lib/open-vm-tools/plugins \ "$subpkgdir"/etc/ mv "$pkgdir"/usr/bin/vmware-user-suid-wrapper \ "$subpkgdir"/usr/bin/ mv "$pkgdir"/etc/xdg "$subpkgdir"/etc/ mv "$pkgdir"/usr/lib/open-vm-tools/plugins/vmusr \ "$subpkgdir"/usr/lib/open-vm-tools/plugins/ } md5sums="7af505681d736d4c9ee6493b1166689f open-vm-tools-9.2.2-893683.tar.gz 87b131c2208b32d9c0bb6fbacd7f75a9 0001-lib-misc-Recognize-Alpine-Linux.patch 7d02fc25aba5c248f3d98dac238f175b libm.patch e462f567cd5588d738af4cfa0dd13b3c werror.patch 82840b6bed002284b9bd2358707ee826 codeset-uclibc.patch 89c7449323ddac4666b73a8467baf95a iconv-uclibc.patch 30a4161baf6274ac9cceb879460cd894 uclibc-stubs.patch 905ef6a3bac87c9ba2e5d3897ca230e7 open-vm-tools.initd" sha256sums="1ae795e75bf4b38185f39083b8075686d3bab4c1222f4e39c863aeccb2f5f387 open-vm-tools-9.2.2-893683.tar.gz 7c12e96fed05834857ff6971d297ac8560eef2942817a37303909b76dff54da0 0001-lib-misc-Recognize-Alpine-Linux.patch f73995a63fe82b5a6944c285293dfeafb0f7d2d44998a947591207187cc0be4f libm.patch b3d39192908c43a26c8aff92d99510b8195c2c7a4e990ff3e74b73ef5bccd73c werror.patch adee5e9f929b3a6dbc41c6979d0b6c6569ddc2cc0f6712fdbf1f3fdbaf917723 codeset-uclibc.patch 70973462f8e10c96d807ae519fc68d819ecc4772f3adc2c3a8a323c19d0e1c2a iconv-uclibc.patch ee79dee76f3439fe060b94e41c43e5c9e37806cfc1487f964ec4e719330af68f uclibc-stubs.patch 7a2ef75375f524042286202b6e03174e60226d4318b4d9145d1fe71517c1af76 open-vm-tools.initd" sha512sums="13490bdff2b8b316b1cd09e06c76293f21b83ede025ded5ddc71251e4f64279296f7dd0f248335f7e3d0714759be13f07263f154683878870a062c9ba55644fc open-vm-tools-9.2.2-893683.tar.gz c9f99658dcbd659ed7288dae36d47216aeea8a496f7fab52711bffb382fab8035c9414045a1dffae79eb38ff03fcb116e1965dae00532f92a09173695f1756aa 0001-lib-misc-Recognize-Alpine-Linux.patch 6a93b48f37838ec28a5c1059845235f12df2ea44d256223b8ca4c102297b3ce7e3c6450b860b057df7a9b6b044bfeb23d5f65d5c18adeef03fa838742b556eac libm.patch 2128c4056e110a068a98cbc9c3ef934aa99d2a74ccae6b96aae6776d62595ac1cb544bbc299002bf545827dee0c75a02a227ea5d43838eeae720e70ee7959824 werror.patch 8b7abbfcf87cc63f9f5acb5479be871365e3dee8ad7b9b3eb64966767c37bcf62f735e9cc1b1a46f39f8901ba658e9fd6090882a9110403f07348b6788247ade codeset-uclibc.patch e12c6c7f56b74933ecd6901587be4068f52d3014e8c4af13c919185d13212659f7e01271acf36e84095be163c1917bf35d257ff2c6005a4fc74e4f05e66aba20 iconv-uclibc.patch cb8e08576a7c195df9f2a4ebf63a1f5b7047f439e3cc56bc21d03a77298a4f7d11b7bec02d17f5d8d7abf4a2932faad462d7464643169a119d4ba3af891696b0 uclibc-stubs.patch bd0210b74154030bafdf9911d2303e49e1c68afa681e4276577074ac3060b52e8e5f14055b1b088398ce1ef0aee3d63f8d358d9e045a15099391f3713edb922a open-vm-tools.initd"