1 # Contributor: Gyo <nucleogeek_at_gmail_dot_com>
5 pkgdesc="A fast arcade game based on fundamental law of bodies attraction"
7 url="http://www.ucw.cz/~hubicka/koules/English/"
9 depends=('dialog' 'libx11' 'libxext')
10 makedepends=('patch' 'imake' 'xextproto' 'xproto')
11 source=(http://www.ucw.cz/~hubicka/koules/packages/${pkgname}${pkgver}-src.tar.gz $pkgname-$pkgver-gcc3.patch.bz2)
12 md5sums=('0a5ac9e57c8b72e9fc200bc98273235c' 'b16677698a084e11e78324098b7a9e57')
15 # some sources modifications
16 cd $startdir/src/${pkgname}${pkgver}
17 patch -Np1 < ../$pkgname-$pkgver-gcc3.patch || return 1
19 -e "/^KOULESDIR/s:=.*:=/usr/bin:" \
20 -e "/^SOUNDDIR/s:=.*:=/usr/share/$pkgname:" Iconfig || return 1
22 -e "s:/usr/local/bin:/usr/bin:" koules || return 1
24 -e 's:exec.*tcl:exec xkoules -M "$@":' koules || return 1
26 ln -s xkoules.6 xkoules.man
27 ln -s xkoules.6 xkoules._man
29 # generate makefiles and building
33 -e "/^ *CFLAGS =/s:$: ${CFLAGS}:" Makefile || return 1
37 mkdir -p $startdir/pkg/usr/bin
38 install -m755 xkoules $startdir/pkg/usr/bin
39 install -m755 koules $startdir/pkg/usr/bin
40 mkdir -p $startdir/pkg/usr/share/koules
41 install -m755 koules.sndsrv.linux $startdir/pkg/usr/share/koules
42 install -m644 sounds/* $startdir/pkg/usr/share/koules
43 mkdir -p $startdir/pkg/usr/share/man/man6
44 install -m644 xkoules.6 $startdir/pkg/usr/share/man/man6