updated on Fri Jan 20 12:03:34 UTC 2012
[aur-mirror.git] / tuxboy / PKGBUILD
blob8666fd33b45bf3de0a21ac75736f935ae69fcee2
1 # Contributor: Christoph Zeiler <rabyteNOSPAM_at_gmx.dot.org>
3 pkgname=tuxboy
4 pkgver=1.0rc3
5 pkgrel=4
6 pkgdesc="An open source GameBoy emulator based on gnuboy"
7 arch=('i686' 'x86_64')
8 url="http://tuxemu.foo.se/"
9 license=('GPL3')
10 depends=('sdl_image' 'sdl_ttf' 'wiiuse')
11 makedepends=('make')
12 install=$pkgname.install
13 source=(http://tuxemu.byethost31.com/file/${pkgname}_100rc3_lin.zip \
14         savedir.diff \
15         Makefile.diff \
16         $pkgname.desktop)
17 md5sums=('54afcc228727e6a3c2f3c915170e034a'
18          '5a529f77fe7455cea35294b7baa22279'
19          'd4955002e3a1fe29681bbfef30430416'
20          '88a216fc7da24d9f03205e92bd3a70ca')
23 build() {
24   cd ${pkgname}_lin_100rc3/source
26   patch -Np0 -i "$srcdir"/savedir.diff || return 1
27   patch -Np0 -i "$srcdir"/Makefile.diff || return 1
29   sed   -e "s|roms/|/usr/share/tuxboy/roms/|g" \
30         -e "s|system/|/usr/share/tuxboy/system/|g" \
31         -i {sdl,sys}.c
33   make  || return 1
34   make DESTDIR="$pkgdir" install
36   install -Dm644 "$srcdir"/tuxboy.desktop "$pkgdir"/usr/share/applications/tuxboy.desktop