updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / jalingo / PKGBUILD
blobf05ff60a8de8547df3958bcf7bb08ef84eee5244
1 # Contributor: Kosenko Roman <madkite@gmail.com>
2 pkgname=jalingo
3 pkgver=0.6.0
4 pkgrel=2
5 pkgdesc='A dictionary written in Java which supports DSL/Mova/SDict/PtkDict formats'
6 url='http://jalingo.sourceforge.net'
7 license=('GPL')
8 arch=('i686' 'x86_64')
9 depends=('java-runtime>=5')
10 makedepends=('p7zip' 'apache-ant>=1.6.5' 'java-environment>=5')
11 source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}-src.7z \
12                 jalingo_file_access.patch \
13                 jalingo_input_box_position.patch \
14                 jalingo_look_and_feel.patch \
15                 jalingo_middle_color.patch)
17 build() {
18         cd ${startdir}/src
19         [ ! -d ${pkgname}-${pkgver}-src ] && 7z x ${pkgname}-${pkgver}-src.7z
20         cd ${pkgname}-${pkgver}-src
21         for i in ../*.patch; do patch -p0 -i ${i} || return $?; done
22         [ -z "${JAVA_HOME}" ] && . /etc/profile.d/jdk.sh
23         ant || return $?
24         mkdir -p ${startdir}/pkg/opt/${pkgname}
25         install -m0644 dist/${pkgname}.jar ${startdir}/pkg/opt/${pkgname}/
26         install -m0644 build/src.installer/resources/jalingo*x*.png ${startdir}/pkg/opt/${pkgname}/
27         echo -e "#!/bin/sh\nexec java -Dja.lingo.laf=com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel -jar '/opt/${pkgname}/${pkgname}.jar'" > ${pkgname}.sh
28         install -m0755 -D ${pkgname}.sh ${startdir}/pkg/usr/bin/${pkgname}
31 md5sums=('ef0142d43353bd0b4b6ba56210c07670' '9575cae143b0491723c03709fb66771c' '794033b928c1066b0ae23ca966bed13f' '4e33b545696a463246a277dd68a2788c' 'add512ba769693d822c81d20314f7b51')