updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / hearse / PKGBUILD
blob71c2eeed20f3077a7e549fa84e480137cafef29e
1 # Maintainer: Daenyth <Daenyth+Arch AT gmail DOT com>
2 # Contributor: Callan Barrett <wizzomafizzo@gmail.com>
4 pkgname=hearse
5 pkgver=1.5
6 pkgrel=3
7 pkgdesc="Nethack online bones file exchanger"
8 arch=('i686' 'x86_64')
9 url="http://hearse.krollmark.com/"
10 license=('GPL')
11 depends=('perl' 'perl-libwww')
12 source=(http://www.argon.org/~roderick/hearse/dist/hearse-$pkgver.tar.gz)
13 install=hearse.install
14 md5sums=('4c022342d3f75af3b70a3e07e8e82ee0')
16 build() {
17   cd $srcdir/hearse-$pkgver
19   perl ./Makefile.PL
20   make DESTDIR=$pkgdir install
22   sed -e '/my $Run_as_user/ s/games/root/' \
23       -e '/my $Run_as_group/ s/games/root/' \
24       -i $pkgdir/usr/bin/perlbin/site/hearse
26   install -m644 -D $srcdir/hearse-$pkgver/hearse.conf \
27                    $pkgdir/etc/nethack/hearse.conf
28   
29   sed -e 's|# bones-dir.*|bones-dir /usr/share/nethack|' \
30       -i $pkgdir/etc/nethack/hearse.conf
32   # Probably need to watch out for this...
33   # This is future self, wtf are you talking about?
34   rm -rf $pkgdir/usr/lib