1 # Maintainer: Mauro Santos <registosites@hotmail.com>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: DaNiMoTh <jjdanimoth@gmail.com>
9 pkgdesc="Java Based MSN client."
11 arch=('i686' 'x86_64')
12 url="http://mercury.im"
14 depends=('java-runtime' 'libxss' 'libxt')
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"
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")
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/*
46 install -D -m644 "${srcdir}/license.txt" "${pkgdir}/usr/share/licenses/mercury/LICENSE"
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
60 unzip "swt-3.6.1-gtk-linux-$_arch.zip"
61 install -D -m644 "${srcdir}/swt.jar" "${pkgdir}/usr/share/mercury/lib"