updated on Fri Jan 20 00:01:56 UTC 2012
[aur-mirror.git] / mercury / PKGBUILD
blobc08388f25617596cb12661aa6130cfa5ae7647d9
1 #$Id: PKGBUILD 57869 2011-11-04 01:39:34Z ebelanger $
2 # Maintainer: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: DaNiMoTh <jjdanimoth@gmail.com>
5 pkgname=mercury
6 pkgver=2.0RC8a
7 pkgrel=1
8 pkgdesc="Java Based MSN client"
9 arch=('any')
10 url="http://www.mercury.im"
11 license=('custom')
12 depends=('bash' 'java-runtime')
13 makedepends=('rpmextract')
14 source=(http://download.opensuse.org/repositories/home:/Lord_LT/openSUSE_11.4/src/Mercury-Messenger-$pkgver-2.1.src.rpm
15         "license.txt")
16 md5sums=('b09ab56b3c63c367081932cda39653e7'
17          '6ce0e815d63db6ac55a28e8d52c3f8da')
19 package() {
20   cd "$srcdir"
21   rpmextract.sh Mercury-Messenger-$pkgver-2.1.src.rpm
22   tar -xf mercury-messenger-2.0rc8a.tar.bz2
23   cd mercury-messenger-2.0rc8a
25   install -d "$pkgdir"/usr/{bin,share/java}
26   cp -r mercury "$pkgdir"/usr/share/java
27   install -D -m644 desktop/mercurylogo.png "$pkgdir"/usr/share/pixmaps/mercurylogo.png
28   install -D -m644 desktop/Mercury-Messenger.desktop "$pkgdir"/usr/share/applications/Mercury-Messenger.desktop
29   ln -s /usr/share/java/mercury/startup/startup_linux.sh "$pkgdir"/usr/bin/mercury
30   install -D -m644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"