1 # $Id: PKGBUILD 46 2008-07-19 20:27:41Z djclue917 $
2 # Maintainer: Darwin Bautista <djclue917@gmail.com>
3 # Contributor: Darwin Bautista <djclue917@gmail.com>
5 pkgname=hotpotatoonline
8 pkgdesc="Fast-paced arena sport game where players try to explode the opposition using a short-fused potato bomb"
10 url="http://www.hotpotatoonline.com/"
12 depends=('libgl' 'mesa' 'sdl_mixer')
13 makedepends=('freeglut' 'unzip')
14 install=hotpotatoonline.install
15 source=(http://downloads.sourceforge.net/sourceforge/hponline/HotPotatoOnlineSources-v$pkgver.tar.gz \
18 hotpotatoonline.desktop \
19 hotpotatoonline-1.2.0-cerrno.patch \
20 hotpotatoonline-1.2.0-glfont2.patch \
21 hotpotatoonline-1.2.0-glpng.patch \
22 hotpotatoonline-1.2.0-gcc43.patch)
23 md5sums=('75e5c82cb2f7994241200ae85947a989'
24 '1bcd8bc189e9a9c1459ad127dd73d84d'
25 '6ee0bc8fec2febe65215d62024ea3d3b'
26 '003f9ba16f39df128156f80d013b31c6'
27 '23989fcd18b51a4e3e53ae3ca1d68356'
28 'dd9273ba06ce42290b017d7af7b43011'
29 'd993bbe3fbb948da965becf63915ca7d'
30 '7ce9e47d97636d48db91215c81bec0fb')
33 cd "$srcdir/HotPotatoOnlineSources-v$pkgver"
36 patch -Np1 -i ../hotpotatoonline-1.2.0-cerrno.patch || return 1
37 patch -Np1 -i ../hotpotatoonline-1.2.0-glfont2.patch || return 1
38 patch -Np1 -i ../hotpotatoonline-1.2.0-glpng.patch || return 1
39 patch -Np1 -i ../hotpotatoonline-1.2.0-gcc43.patch || return 1
42 unzip -qo src/staticlibs/sources/glpng.zip include/GL/glpng.h -d src
45 make CXXFLAGS="$CXXFLAGS -Wall -DLINUX -DSOUND" || return 1
47 # Remove intermediate & unnecessary files
48 rm -rf src Makefile *.txt
50 # Install game binary and data files
51 mkdir -p $pkgdir/opt/hponline
52 mv * $pkgdir/opt/hponline/
54 # Install icon and shortcut
55 install -D -m644 ../hotpotatoonline.png $pkgdir/usr/share/pixmaps/hotpotatoonline.png
56 install -D -m644 ../hotpotatoonline.desktop $pkgdir/usr/share/applications/hotpotatoonline.desktop
58 # Install shell script
59 install -D -m755 ../hotpotatoonline.sh $pkgdir/usr/bin/hotpotatoonline
61 # Change group to games then enable write access for that group
62 chown root:games $pkgdir/opt/hponline
63 chmod 770 $pkgdir/opt/hponline
66 # vim:set ts=2 sw=2 et: