updated on Sun Jan 8 20:02:33 UTC 2012
[aur-mirror.git] / yuuguu / PKGBUILD
bloba5fc5adbab8f2e17a5a4af3cacbf32e5ce71409d
1 # Contributor: neolith
2 pkgname=yuuguu
3 pkgver=5626
4 pkgrel=2
5 pkgdesc="Yuuguu offers cross network instant messaging, instant screen sharing, real time collaboration, web conferencing and remote support."
6 arch=('i686' 'x86_64')
7 url="http://yuuguu.com"
8 license=('custom:Yuuguu User license')
9 depends=('java-runtime')
10 makedepends=('rpmextract')
11 md5sums=('4f6b28c43a199fc9b5eaff339e0b5fed'
12          'ece9ab1401b19617be2ab0352c992a18')
13 _architect='i386'
14 [ "$CARCH" = "x86_64" ] && _architect='amd64'
15 [ "$CARCH" = "x86_64" ] && md5sums[0]='5a44cbc20cf35df06602a54537564ef2'
17 source=("yuuguu-latest-${_architect}.rpm::http://www.yuuguu.com/downloads/yuuguu-latest-${_architect}.rpm"
18         'patch-yuuguu')
19 provides=("$pkgname=${pkgver}")
20 build() {
21   cd $srcdir
23   # extract the archive
24   rpmextract.sh yuuguu-latest-${_architect}.rpm || return 1
26   # apply java location fix  
27   patch usr/bin/yuuguu patch-yuuguu
29   mkdir -p pkg
30   mv usr pkg
32   cp -r pkg/usr $pkgdir || return 1
34   install -D -m644 $srcdir/pkg/usr/share/doc/yuuguu/copyright $pkgdir/usr/share/licenses/$pkgname/license.txt || return 1