summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD56
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..263469153b7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = vmware-ovftool
+ pkgdesc = VMware Open Virtualization Format tool
+ pkgver = 4.1.0.2459827
+ pkgrel = 2
+ url = https://www.vmware.com/support/developer/ovf/
+ arch = i686
+ arch = x86_64
+ license = custom:vmware
+ depends = curl
+ source_i686 = https://dl.dropboxusercontent.com/u/99802211/external_sources/VMware%20OVFTool/VMware-ovftool-4.1.0-2459827-lin.i386.bundle
+ sha256sums_i686 = cd931c83ceac41f9859e5414fafe4717a1d4a49c32b11afdf4f575ac2515eba2
+ source_x86_64 = https://dl.dropboxusercontent.com/u/99802211/external_sources/VMware%20OVFTool/VMware-ovftool-4.1.0-2459827-lin.x86_64.bundle
+ sha256sums_x86_64 = a21ce600f92321a71cde5de1bb947ca9aa62d898c81cefcba4066b756b43993f
+
+pkgname = vmware-ovftool
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..df160d8937d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,56 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+pkgname=vmware-ovftool
+pkgver=4.1.0.2459827
+pkgrel=2
+pkgdesc="VMware Open Virtualization Format tool"
+arch=('i686' 'x86_64')
+url="https://www.vmware.com/support/developer/ovf/"
+license=('custom:vmware')
+depends=('curl')
+source_i686=("https://dl.dropboxusercontent.com/u/99802211/external_sources/VMware%20OVFTool/VMware-ovftool-${pkgver%.*}-${pkgver##*.}-lin.i386.bundle")
+source_x86_64=("https://dl.dropboxusercontent.com/u/99802211/external_sources/VMware%20OVFTool/VMware-ovftool-${pkgver%.*}-${pkgver##*.}-lin.x86_64.bundle")
+sha256sums_i686=('cd931c83ceac41f9859e5414fafe4717a1d4a49c32b11afdf4f575ac2515eba2')
+sha256sums_x86_64=('a21ce600f92321a71cde5de1bb947ca9aa62d898c81cefcba4066b756b43993f')
+
+prepare() {
+ # The bundle file doesn't allow extraction using symlinks or relative paths, here's then copied
+ if [ "${CARCH}" = "x86_64" ]
+ then
+ _subarch="x86_64"
+ else
+ _subarch="i386"
+ fi
+ _bundlepath=$(readlink "${srcdir}/VMware-ovftool-${pkgver%.*}-${pkgver##*.}-lin.${_subarch}.bundle")
+ cp -f -L "${_bundlepath}" "${srcdir}/VMware-ovftool-${pkgver%.*}-${pkgver##*.}-${CARCH}_file.bundle"
+}
+
+build() {
+ rm -rf "${srcdir}/build"
+ sh "${srcdir}/VMware-ovftool-${pkgver%.*}-${pkgver##*.}-${CARCH}_file.bundle" -x "${srcdir}/build"
+}
+
+package() {
+ cd "${srcdir}/build/${pkgname}"
+ # Install binaries files
+ install -m 755 -d "${pkgdir}/usr/lib/${pkgname}"
+ install -m 644 -t "${pkgdir}/usr/lib/${pkgname}" icudt44l.dat lib*
+ install -m 755 -t "${pkgdir}/usr/lib/${pkgname}" ovftool ovftool.bin
+ # Install data files
+ for _subdir in certs env env/en schemas/DMTF schemas/vmware
+ do
+ install -m 755 -d "${pkgdir}/usr/lib/${pkgname}/${_subdir}"
+ install -m 644 -t "${pkgdir}/usr/lib/${pkgname}/${_subdir}" "${_subdir}"/*.*
+ done
+ # Install main script symlink
+ install -m 755 -d "${pkgdir}/usr/bin"
+ ln -s "/usr/lib/${pkgname}/ovftool" "${pkgdir}/usr/bin/ovftool"
+ # Install license files
+ install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" \
+ vmware.eula vmware-eula.rtf open_source_licenses.txt
+ # Install documentation files
+ install -m 755 -d "${pkgdir}/usr/share/doc/${pkgname}"
+ install -m 644 -t "${pkgdir}/usr/share/doc/${pkgname}" README.txt
+}
+