1 # Contributor: Kosenko Roman <madkite@gmail.com>
5 pkgdesc='A dictionary written in Java which supports DSL/Mova/SDict/PtkDict formats'
6 url='http://jalingo.sourceforge.net'
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)
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
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')