updated on Sun Jan 22 16:00:49 UTC 2012
[aur-mirror.git] / jaolt-svn / PKGBUILD
blob630f230712ed805153d78dfc00217106859dcb97
1 # Maintainer: Max Roder <maxroder@web.de>
3 pkgname=jaolt-svn
4 pkgver=1080
5 pkgrel=1
6 pkgdesc="java auction management tool for ebay, auvito and hood"
7 arch=('any')
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')
13 provides=('jaolt')
14 conflicts=('jaolt')
15 source=('jaolt.patch'
16                 'license-instructions.txt.patch')
17 md5sums=('b4196d667726ae8a1ca6595bd5a68f39'
18         'd0e9cb633b758a03fb8c7c954f70c1c9')
20 _svntrunk='http://jaolt.googlecode.com/svn/trunk'
21 _svnmod='jaolt'
23 build() {
24         cd ${srcdir}
26         msg2 "Connecting to SVN server...."
28         if [ -d ${_svnmod}/.svn ]; then
29                 (cd ${_svnmod} && svn up -r $pkgver)
30         else
31                 svn co ${_svntrunk} --config-dir ./ -r $pkgver ${_svnmod}
32         fi
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
40         cd ${_svnmod}-build
42         msg2 "Compiling using apache-ant"
43         /usr/share/java/apache-ant/bin/ant
46 package() {
47         cd ${_svnmod}-build
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
62         msg2 "Copying files"
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
69         
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/
75         # Clean up
76         cd .. && rm -rf ${srcdir}/${_svnmod}-build