diff options
Diffstat (limited to 'community/mercury/PKGBUILD')
-rw-r--r-- | community/mercury/PKGBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/community/mercury/PKGBUILD b/community/mercury/PKGBUILD new file mode 100644 index 000000000..be8e30945 --- /dev/null +++ b/community/mercury/PKGBUILD @@ -0,0 +1,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" +} |