updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / bootchart / PKGBUILD
blobd2bf5c493a19e40eb7465e76e27a0b6f47583399
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
2 # Contributor : Aaron Griffin <aaron@archlinux.org>
4 pkgname=bootchart
5 pkgver=0.9
6 pkgrel=9
7 pkgdesc="Boot Process Performance Visualization"
8 url="http://www.bootchart.org/"
9 arch=('any')
10 license=('GPL2')
11 depends=('acct' 'sh')
12 makedepends=('apache-ant' 'java-environment>=6')
13 optdepends=('java-runtime>=6: for bootchart-render')
14 install="$pkgname.install"
15 source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2"
16         "$pkgname-render"
17         "fix-inittab-regex.patch")
18 md5sums=('4be91177d19069e21beeb106f2f77dff'
19          '19e785b10f27b264e2f033a5548307b9'
20          'c8a70f1f763a2632dc7759a6387f865f')
22 build() {
23   cd "$srcdir/$pkgname-$pkgver"
25   #FS#8438 - fix the regex used to scan inittab for archlinux
26   patch -up1 < ../fix-inittab-regex.patch
28   # Build Jar
29   /usr/share/java/apache-ant/bin/ant jar
32 package() {
33   cd "$srcdir/$pkgname-$pkgver"
35   install -dm755 "$pkgdir"/{etc,sbin,usr/{bin,share/$pkgname}}
37   install -Dm755 script/${pkgname}d "$pkgdir/sbin"
38   install -Dm644 script/${pkgname}d.conf "$pkgdir/etc"
39   install -Dm755 ../${pkgname}-render "$pkgdir/usr/bin"
40   install -Dm644 ${pkgname}.jar "$pkgdir/usr/share/$pkgname"