updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / cruisecontrol-bin / PKGBUILD
blob8f6d82552edeab2c85d5fd71782cb5f22842c3dc
1 # Maintainer: Kim Silkebækken <kim.silkebaekken+archlinux@gmail.com>
2 # Contributor: Spider.007 <archPackage@spider007.net>
4 pkgname=cruisecontrol-bin
5 pkgver=2.8.4
6 pkgrel=1
7 pkgdesc="A continuous integration tool and an extensible framework for creating a custom continuous build process."
8 arch=(any)
9 url="http://sourceforge.net/projects/cruisecontrol/"
10 license=("BSD")
11 depends=("java-environment>=5")
12 install=${pkgname}.install
13 source=("http://downloads.sourceforge.net/project/cruisecontrol/CruiseControl/${pkgver}/cruisecontrol-bin-${pkgver}.zip"
14         "cruisecontrol.init")
15 md5sums=('8446c68c4df726dcb53e96bd3acf077a'
16          '4e38d34d62bfb6ae854e1f530846c683')
18 build() {
19         # Create directories
20         install -d ${pkgdir}/{opt,var/{log,run},etc/rc.d}
22         # Install init script
23         install -D -m755 ${srcdir}/cruisecontrol.init ${pkgdir}/etc/rc.d/cruisecontrol
25         # Install source
26         cp -R ${srcdir}/${pkgname}-${pkgver} ${pkgdir}/opt/cruisecontrol
28         # Create log and pid files
29         touch ${pkgdir}/var/log/cruisecontrol.log \
30               ${pkgdir}/var/run/cruisecontrol.pid
32         # Put PID file in /var/run
33         sed -i 's|echo $!.*|echo $! > /var/run/cruisecontrol.pid|1' ${pkgdir}/opt/cruisecontrol/cruisecontrol.sh