updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / mercury2 / PKGBUILD
blobbe9b3ec26b98dd93eb11cb19043fe23cfff475b4
1 # Maintainer: Mauro Santos <registosites@hotmail.com>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: DaNiMoTh <jjdanimoth@gmail.com>
5 pkgname=mercury2
6 _pkgname=mercury
7 pkgver=rc8a
8 pkgrel=2
9 pkgdesc="Java Based MSN client."
10 license=('custom')
11 arch=('i686' 'x86_64')
12 url="http://mercury.im"
13 conflicts=('mercury')
14 depends=('java-runtime' 'libxss' 'libxt')
15 makedepends=('unzip')
17 _arch='x86'
18 [ "$CARCH" = "x86_64" ] && _arch='x86_64'
19 source=("http://files.mercury.im/2.0/release/$pkgver/core.zip"
20                 "http://ftp.rnl.ist.utl.pt/pub/eclipse/eclipse/downloads/drops/R-3.6.1-201009090800/swt-3.6.1-gtk-linux-$_arch.zip"
21         mercurylogo.png
22         mercury.desktop
23         license.txt)
24 md5sums=('9b1cda5b5ebdd4547cef6c7f507d7f8f'
25                  'fec1434126f946c060326b4e0d9ea279'
26          '88b740b196eab09fe5027561ce6fb9ff'
27          'ce2fb47982e564f0783d905f53341a6c'
28          '6ce0e815d63db6ac55a28e8d52c3f8da')
29 [ "$CARCH" = "x86_64" ] && md5sums[1]='ad23e5a60ece4b2a157a1203f44e2900'
31 noextract=('core.zip' "swt-3.6.1-gtk-linux-$_arch.zip")
33 build() {
34         echo $CARCH
35     # Extract mercury
36     mkdir -p "${pkgdir}/usr/share/mercury"
37     cd "${pkgdir}/usr/share/mercury/"
38     unzip -o "${startdir}/src/core.zip"
40     # Remove things we don't need
41     rm ${pkgdir}/usr/share/mercury/startup/startup_windows*
42     # Make sure permissions are ok
43     chmod +x ${pkgdir}/usr/share/mercury/startup/*
45     # Install license
46     install -D -m644 "${srcdir}/license.txt" "${pkgdir}/usr/share/licenses/mercury/LICENSE"
48     # Install icon
49     install -D -m644 "${srcdir}/mercurylogo.png" "${pkgdir}/usr/share/pixmaps/mercurylogo.png"
51     # Install desktop file
52     install -D -m644 "${srcdir}/mercury.desktop" "${pkgdir}/usr/share/applications/mercury.desktop"
54     # Make link in /usr/bin
55     mkdir -p "${pkgdir}/usr/bin"
56     ln -s /usr/share/mercury/startup/startup_linux.sh "${pkgdir}/usr/bin/mercury"
58     # Unzip and copy swt.jar
59     cd "${srcdir}"
60     unzip "swt-3.6.1-gtk-linux-$_arch.zip"
61     install -D -m644 "${srcdir}/swt.jar" "${pkgdir}/usr/share/mercury/lib"