updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / hhh / PKGBUILD
blobb496ab026f221761a0a6884aed7968b274ed5c96
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributor: Dominika Solarz <dominikasolarz@gmail.com>
4 pkgname=hhh
5 pkgver=1.0
6 pkgrel=1
7 pkgdesc="Help Hannah's Horse: an arcade game based on Pacman and Fastfood"
8 arch=('i686' 'x86_64')
9 url="https://sourceforge.net/projects/hannah/"
10 license=('GPL' 'custom')
11 depends=('gcc-libs' 'sdl_image' 'sdl_mixer' 'sdl_ttf')
12 source=(http://downloads.sourceforge.net/hannah/$pkgname-$pkgver.tar.gz
13         $pkgname.desktop)
14 md5sums=('526b7fc05029f7b842d7ee89f61f8783'
15          '54505f9fc3c2263c548600a91639210f')
17 build() {
18   cd "$srcdir"/$pkgname-2008-03-29
20   # make
21   sed \
22     -e "s,local/games,share," \
23     -e "s,local/bin,bin," \
24     -i Makefile
25   make || return 1
27   # install binary
28   install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
30   # install data
31   install -m 755 -d "$pkgdir"/usr/share/$pkgname
32   cp -rf \
33     blue carrot freeze hannah images invert \
34     invis maps newanim pink red sounds stop \
35     *.{ogg,png,ttf} \
36     "$pkgdir"/usr/share/$pkgname
38   # install license files
39   install -m755 -d "$pkgdir"/usr/share/licenses/$pkgname
40   install -m644 -t "$pkgdir"/usr/share/licenses/$pkgname \
41     LICENSE {Ray_Dittmeier_Fonts,StansHandOFL}.txt
43   # instll .desktop file
44   install -Dm644 ../$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
46   #install icon
47   install -Dm644 hannah/default/hannah_down1.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
49   # set permissions
50   find "$pkgdir"/usr/share/$pkgname -type d -exec chmod 755 {} +
51   find "$pkgdir"/usr/share/$pkgname -type f -exec chmod 644 {} +