1 # Maintainer: Max Roder <maxroder@web.de>
6 pkgdesc="java auction management tool for ebay, auvito and hood"
8 url="http://code.google.com/p/jaolt/"
9 license=('LGPL' 'CDDL' 'APACHE' 'BSD' 'CCPL:by' 'custom:H2' 'custom:jdom' 'custom:jgoodies')
10 #depends=('hsqldb-java' 'java-runtime' 'java-jdom' 'jgoodies-looks' 'jgoodies-forms')
11 depends=('java-runtime')
12 makedepends=('apache-ant' 'subversion')
16 'license-instructions.txt.patch')
17 md5sums=('b4196d667726ae8a1ca6595bd5a68f39'
18 'd0e9cb633b758a03fb8c7c954f70c1c9')
20 _svntrunk='http://jaolt.googlecode.com/svn/trunk'
26 msg2 "Connecting to SVN server...."
28 if [ -d ${_svnmod}/.svn ]; then
29 (cd ${_svnmod} && svn up -r $pkgver)
31 svn co ${_svntrunk} --config-dir ./ -r $pkgver ${_svnmod}
34 msg2 "SVN checkout done or server timeout"
35 msg2 "Starting build..."
37 # Remove old source files first, if present
38 rm -rf ${_svnmod}-build
39 svn export ${_svnmod} ${_svnmod}-build
42 msg2 "Compiling using apache-ant"
43 /usr/share/java/apache-ant/bin/ant
49 # Remove .svn directories
50 rm -rf `find "$pkgdir" -type d -name ".svn"`
52 #patch -N -i ../jaolt.patch
53 #patch -N -i ../license-instructions.txt.patch
55 sed -i 's/launcher.jar/\/usr\/share\/java\/jaolt\/launcher.jar/g' jaolt
57 # Copying license files
58 install -d ${pkgdir}/usr/share/licenses/jaolt
59 mv jgoodies-uiflite.txt ${pkgdir}/usr/share/licenses/jaolt/LICENSE.jgoodies
60 mv license-instructions.txt ${pkgdir}/usr/share/licenses/jaolt/readme
63 install -d ${pkgdir}/usr/share/java/jaolt/ ${pkgdir}/usr/share/applications/ ${pkgdir}/usr/share/pixmaps/
64 mv jaolt.desktop ${pkgdir}/usr/share/applications/
65 mv jaolt.xpm ${pkgdir}/usr/share/pixmaps/
67 # Removing unnecessary libs
68 #rm -rf lib/forms*.jar lib/h2*.jar lib/jdom*.jar lib/looks*.jar
70 # Removing unnecessary files, copy anything else
71 install -Dm755 jaolt ${pkgdir}/usr/bin/jaolt
72 rm -rf bin/ build* changelog.txt jaolt lgpl.txt src/ jgoodies-forms.txt jgoodies-looks.txt legacy/ h2.txt jdom.txt
73 cp -r * ${pkgdir}/usr/share/java/jaolt/
76 cd .. && rm -rf ${srcdir}/${_svnmod}-build