Skip to content
Snippets Groups Projects
Commit d696932e authored by Carlo Landmeter's avatar Carlo Landmeter
Browse files

main/open-vm-tools: reformat apkbuild and rebuild against libtirpc

parent 952fdbfe
No related merge requests found
......@@ -3,7 +3,7 @@ pkgname=open-vm-tools
pkgver=10.0.7
_pkgsubver=${pkgver#*_p}
_ver=${pkgver/_p/-}
pkgrel=3
pkgrel=4
pkgdesc="The Open Virtual Machine Tools are the open source implementation of VMware Tools."
url="https://github.com/vmware/open-vm-tools/"
......@@ -32,38 +32,15 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/vmware/open-vm-tools/archive
open-vm-tools.initd
"
_builddir="$srcdir"/open-vm-tools-stable-$_ver
#/open-vm-tools
prepare() {
cd "$_builddir"
for patch in $source; do
case $patch in
*.patch)
msg "Applying patch $patch"
patch -p1 -i "$srcdir"/$patch || return 1
;;
esac
done
cd open-vm-tools
# workaround automake-1.10 issue
# http://ramblingfoo.blogspot.com/2007/07/required-file-configrpath-not-
mkdir -p config
touch config/config.rpath
libtoolize --force --install && aclocal -I m4 -I config && autoconf \
&& automake --add-missing
}
builddir="$srcdir"/open-vm-tools-stable-$_ver
build() {
export CUSTOM_PROCPS_NAME="procps"
export CFLAGS="$CFLAGS -Wno-unused-but-set-variable -fpermissive -D_GNU_SOURCE"
export CXXFLAGS="$CXXFLAGS -std=gnu++11 -fpermissive"
mkdir "$_builddir"/build
cd "$_builddir"/build
../open-vm-tools/configure \
cd "$builddir"/open-vm-tools
autoreconf -vif || return 1
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
......@@ -81,7 +58,7 @@ build() {
}
package() {
cd "$_builddir"/build
cd "$builddir"/open-vm-tools
make install DESTDIR=$pkgdir || return 1
install -Dm755 "$srcdir"/open-vm-tools.initd \
"$pkgdir"/etc/init.d/open-vm-tools
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment