updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vmware-vmrc-standalone / PKGBUILD
bloba7e3fa86999e5d56de7184586fb90506760575b0
1 pkgname=vmware-vmrc-standalone
2 pkgver=2.0.2
3 pkgrel=3
4 pkgdesc="standalone remote console for VMware Server"
5 arch=('i686' 'x86_64')
6 url="http://www.vmware.com/products/server/"
7 license=('custom')
8 makedepends=('unzip')
9 install='vmware-vmrc-standalone.install'
10 source=('vmware-vmrc-standalone.desktop')
11 md5sums=('0eaf76ea521b787b2b601174e53f2def')
13 case ${CARCH} in
14   i686)
15     source=(${source[@]} 'VMware-server-2.0.2-203138.i386.tar.gz')
16     md5sums=(${md5sums[@]} '6eb844d1ab4aed6128438e5f587d10bb')
17     filename="vmware-vmrc-linux-x86.xpi";;
18   x86_64)
19     source=(${source[@]} 'VMware-server-2.0.2-203138.x86_64.tar.gz')
20     md5sums=(${md5sums[@]} 'cc7aef813008eeb7150c21547d431b39')
21     filename="vmware-vmrc-linux-x64.xpi";;
22 esac
24 build() {
25   cd "$srcdir/vmware-server-distrib"
27   mkdir -p $pkgdir/usr/share/applications/ || return 1
28   install -m644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/ || return 1
30   mkdir -p $srcdir/tmp || return 1
31   cp -a lib/webAccess/tomcat/apache-tomcat-6.0.16/webapps/ui/plugin/$filename $srcdir/tmp || return 1
32   cd $srcdir/tmp || return 1
33   unzip -o $filename || return 1
34   mkdir -p $pkgdir/opt/$pkgname || return 1
35   cp -R $srcdir/tmp/plugins/* $pkgdir/opt/$pkgname || return 1
36   mkdir -p $pkgdir/usr/bin || return 1
37   ln -s /opt/vmware-vmrc-standalone/vmware-vmrc $pkgdir/usr/bin/$pkgname || return 1