Created
June 12, 2010 07:53
-
-
Save axelson/435546 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment