| #Contributor: Markus M. May <mmay AT javafreedom DOT org> | |
| pkgname=hudson | |
| pkgver=1.352 | |
| pkgrel=2 | |
| pkgdesc="Extensible Continuous Integration Server." | |
| url="http://hudson-ci.org" | |
| arch=('i686' 'x86_64') | |
| license=('MIT') | |
| depends=('java-environment') | |
| optdepends=('apache: a full featured webserver' | |
| 'maven: a java project management and project comprehension tool') | |
| conflicts=('java-hudson' 'hudson') | |
| provides=('hudson') | |
| options=(!strip !docs ) | |
| backup=('wrapper.conf' | |
| 'hudson') | |
| install=hudson.install | |
| source=(http://hudson-ci.org/download/war/${pkgver}/$pkgname.war | |
| http://wrapper.tanukisoftware.org/download/3.3.7/wrapper-delta-pack-3.3.7.tar.gz | |
| 'wrapper.conf' | |
| 'hudson') | |
| noextract=(hudson.war) | |
| md5sums=('d065836161d34fd4e2925919c1ca39b8' | |
| '009ea0881c321108ab6bb64e33d758a3' | |
| '322379c155ad259a2a8b81ff624c7351' | |
| '46aff67e27e087717eaef0b10c59453e') | |
| build() { | |
| cd ${srcdir} | |
| # Create directory | |
| install -d $pkgdir/opt/hudson | |
| install -d $pkgdir/opt/hudson/bin | |
| install -d $pkgdir/opt/hudson/bin/lib | |
| install -d $pkgdir/opt/hudson/lib | |
| install -d $pkgdir/opt/hudson/conf | |
| install -d $pkgdir/opt/hudson/tmp | |
| install -d $pkgdir/opt/hudson/data | |
| install -d $pkgdir/etc/rc.d | |
| install -d $pkgdir/etc/hudson | |
| # prepare wrapper | |
| if [ $CARCH = 'x86_64' ]; then | |
| echo "CARCH isis x86_64"; | |
| install $srcdir/wrapper-delta-pack-3.3.7/bin/wrapper-linux-x86-64 $pkgdir/opt/hudson/bin/wrapper | |
| install $srcdir/wrapper-delta-pack-3.3.7/lib/libwrapper-linux-x86-64.so $pkgdir/opt/hudson/bin/lib | |
| elif [ $CARCH = 'i686' ]; then | |
| install $srcdir/wrapper-delta-pack-3.3.7/bin/wrapper-linux-x86-32 $pkgdir/opt/hudson/bin/wrapper | |
| install $srcdir/wrapper-delta-pack-3.3.7/lib/libwrapper-linux-x86-32.so $pkgdir/opt/hudson/bin/lib | |
| fi | |
| install $srcdir/wrapper-delta-pack-3.3.7/lib/wrapper.jar $pkgdir/opt/hudson/lib | |
| install $srcdir/hudson.war $pkgdir/opt/hudson/lib | |
| install $srcdir/wrapper.conf $pkgdir/etc/hudson | |
| install $srcdir/hudson $pkgdir/opt/hudson/bin | |
| install -d $pkgdir/etc/hudson | |
| install -d $pkgdir/var/run/hudson | |
| install -d $pkgdir/var/log/hudson | |
| } |