updated on Wed Jan 18 20:10:41 UTC 2012
[aur-mirror.git] / jgoogletranslator / PKGBUILD
blobad655621dda33eb31176dec8d108f9094c2c04f6
1 # Maintainer: Marco Rocco <mr85mr@gmail.com>
2 pkgname=jgoogletranslator
3 pkgver=1.2
4 pkgrel=1
5 pkgdesc='A translator written in Java using Google online service'
6 arch=('any')
7 url='http://www.echlab.com/'
8 license=('GPL')
9 depends=('java-runtime')
10 source=("http://www.echlab.com/pub/jGoogleTranslator/jGoogleTranslator-$pkgver.tar.gz")
11 md5sums=('da337946f70db26cabb6a5e82480338a')
14 build() {
15         # create directory
16         install -d $pkgdir/usr/share/java/jGoogleTranslator/
17         # install launcher file
18         install -D -m755 $srcdir/jGoogleTranslator.sh "$pkgdir/usr/bin/jGoogleTranslator" || return 1
19         install -D -m755 $srcdir/jGoogleTranslator.jar "$pkgdir/usr/share/java/jGoogleTranslator/"
20         install -D -m644 "$srcdir/jGoogleTranslator.desktop" "$pkgdir/usr/share/applications/jGoogleTranslator.desktop" || return 1
21         install -D -m644 "$srcdir/jGoogleTranslator.png" "$pkgdir/usr/share/pixmaps/jGoogleTranslator.png" || return 1