updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / bt747 / PKGBUILD
blob5e4a4742493e0e04a4512b091677daf095242475
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 pkgname=bt747
3 _pkgname=BT747
4 pkgver=2.0.3
5 pkgrel=2
6 pkgdesc="The swiss army knife for MTK loggers"
7 arch=('any')
8 url="http://bt747.org/"
9 license=('GPL')
10 depends=('java-runtime' 'rxtx')
11 makedepends=('imagemagick')
12 source=(http://downloads.sourceforge.net/$pkgname/${_pkgname}_${pkgver}_full.zip
13         http://www.bt747.org/icon/${pkgname}_128x128.gif
14         $pkgname.desktop)
15 md5sums=('941ca78c787487eabd74d1de1a88e5f4'
16          '01a6c5989735d18d57756f51c41305ba'
17          '8d0c25cbbfca16dfd102f2d43d54bd85')
19 build() {
20   cd "$srcdir"
22   convert "${pkgname}_128x128.gif" "${pkgname}_128x128.png"
23   _installdir="$pkgdir"/usr/share/java/$pkgname
24   install -D -m644 lib/jchart2d-3.1.0.jar "$_installdir"/lib/jchart2d-3.1.0.jar
25   install -D -m644 lib/jopt-simple-2.4.1.jar "$_installdir"/lib/jopt-simple-2.4.1.jar
26   install -D -m644 lib/jcalendar-1.3.2.jar "$_installdir"/lib/jcalendar-1.3.2.jar
27   install -D -m644 lib/swing-layout-1.0.3.jar "$_installdir"/lib/swing-layout-1.0.3.jar
28   install -D -m644 lib/swingx.jar "$_installdir"/lib/swingx.jar
29   install -D -m644 lib/swingx-ws.jar "$_installdir"/lib/swingx-ws.jar
30   install -D -m644 dist/libBT747.jar "$_installdir"/dist/libBT747.jar
31   install -D -m644 dist/BT747_j2se.jar "$_installdir"/dist/BT747_j2se.jar
33   sed -i 's|^ROOT_DIR=.*|ROOT_DIR=/usr/share/java/bt747|
34           s|/usr/share/java/RXTXcomm.jar|/usr/share/java/rxtx/RXTXcomm.jar|
35           s|bt747.j2se_view.BT747Main $\* &|-Dbt747_settings="$XDG_CONFIG_HOME/bt747/bt747settings.pdb" bt747.j2se_view.BT747Main $\*|' ./run_j2se.sh
36   install -D -m755 ./run_j2se.sh "$pkgdir"/usr/bin/$pkgname
38   install -D -m644 $pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
39   install -D -m644 ${pkgname}_128x128.png "$pkgdir"/usr/share/pixmaps/$pkgname.png