summaryrefslogtreecommitdiff
path: root/community/mercury/PKGBUILD
blob: be8e3094590f22afaaee5c0f12b70b71e38746a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#$Id: PKGBUILD 2282 2009-09-14 07:35:54Z giovanni $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: DaNiMoTh <jjdanimoth@gmail.com>

pkgname=mercury
pkgver=1.9.5
pkgrel=2
pkgdesc="Java Based MSN client."
license=('custom')
arch=('i686' 'x86_64')
url="http://www.mercury.im"
depends=('java-runtime' 'libxss' 'libxt')
makedepends=('rpmextract')
source=(http://thebachman.info/public/Versions_Ubuntu/${pkgname}-messenger-${pkgver}-2.all.rpm
	"license.txt")
md5sums=('7d5835cf1ac7864386efe42b9cf67d6b'
         '6ce0e815d63db6ac55a28e8d52c3f8da')

build() {
  cd "$srcdir"

  rpmextract.sh ${pkgname}-messenger-${pkgver}-2.all.rpm

  install -d "$pkgdir/usr/share/java/mercury"
  cp -r usr "$pkgdir"
  mv "$pkgdir/usr/share/mercury" "$pkgdir/usr/share/java/"

  # FS#16171
  find ${pkgdir} -type f -exec chmod -R 644 {} \;
  find ${pkgdir} -type d -exec chmod 755 {} \;
  chmod 755 ${pkgdir}/usr/share/java/mercury/startup/startup_linux.sh
  
  install -D -m644 "$srcdir/license.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  rm -rf "$pkgdir/usr/bin/mercury"
  ln -s /usr/share/java/mercury/startup/startup_linux.sh "$pkgdir/usr/bin/mercury"
}