updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bustle / PKGBUILD
blob57b71358aa27ed7b342b4e9834a9efb0d138b6a7
1 # Maintainer: Alex Merry <dev@randomguy3.me.uk>
2 pkgname=bustle
3 pkgver=0.2.5
4 pkgrel=1
5 pkgdesc="A D-Bus profiler"
6 arch=(i686 x86_64)
7 url="http://willthompson.co.uk/bustle/"
8 license=('GPL')
9 depends=('dbus-core' 'libglade')
10 makedepends=('ghc' 'haskell-mtl' 'haskell-parsec' 'gtk2hs-gtk' 'gtk2hs-glade')
11 source=($pkgname-$pkgver.tar.gz bustle.1 bustle-count.1 bustle-dbus-monitor.1 bustle-dot.1 bustle-time.1)
12 md5sums=('3167e201815cb40727f8fcc13459aa97'
13          '1ad8189edaa42c01e6f618705e9e9692'
14          'c771545db820441783d53b13e9946cce'
15          '23c0e382c7c4031dc8e72e4f9f3cf92f'
16          '904ff50172ccc36c408df469dcb5499e'
17          'bd08e02e3f8c4d17367be0f4d2ec6354')
19 build() {
20   cd "$srcdir/$pkgname-$pkgver"
22   # build the monitor
23   make
25   # build the graphing tool
26   ghc -package Cabal Setup.lhs -o setup
27   ./setup configure --prefix /usr
28   ./setup build
31 package() {
32   cd "$srcdir/$pkgname-$pkgver"
33   ./setup copy --destdir "$pkgdir"
34   install -m755 bustle-dbus-monitor "$pkgdir/usr/bin/"
36   cd "$srcdir"
37   install -d -m755 "$pkgdir/usr/share/man/man1"
38   install -m644 bustle.1 bustle-count.1 bustle-dbus-monitor.1 bustle-dot.1 bustle-time.1 "$pkgdir/usr/share/man/man1/"
40   install -d -m755 "$pkgdir/usr/share/licenses/bustle"
41   mv "$pkgdir/usr/share/doc/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/bustle/LICENSE"
42   rmdir "$pkgdir/usr/share/doc/$pkgname-$pkgver"
43   rmdir "$pkgdir/usr/share/doc"
46 # vim:set ts=2 sw=2 et: