1 # Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
2 # Contributor: Liberion <liberion[at]gmail[.]com> patch libpng compile
7 pkgdesc="An addictive block game"
9 url="http://briquolo.free.fr/"
11 depends=('sdl' 'sdl_mixer' 'libpng' 'sdl_ttf' 'mesa' 'desktop-file-utils')
12 makedepends=('patch' 'autoconf' 'automake' 'cvs')
14 install=$pkgname.install
15 source=(http://briquolo.free.fr/download/$pkgname-$pkgver.tar.bz2 \
16 $pkgname.desktop $pkgname.png $pkgname-gcc.patch $pkgname-libpng.patch)
17 md5sums=('e24d22d2d719d64c231d3d76f9291d6e'
18 '0fb2744c4bb0e36bf9599a77a54183d7'
19 '6a310dfa94225c9e16571e4e25eebfb3'
20 'd3077d1a57e531bbe8d1b15dae09969f'
21 'f9b3afa24803a02d23616b859d880b1d')
24 cd ${srcdir}/$pkgname-$pkgver
26 # Fixes gcc 4.3 compilation
27 patch -Np0 -i ${srcdir}/$pkgname-gcc.patch || return 1
28 # Fixes libpng compilation problem
29 patch -Np1 -i ${srcdir}/$pkgname-libpng.patch || return 1
30 # Fix for buggy Makefile - give it a desktop file to process
31 install -D -m644 ${srcdir}/$pkgname.desktop \
32 ${pkgdir}/usr/share/applications/$pkgname.desktop || return 1
35 autoreconf -fi || return 1
36 ./configure --prefix=/usr --with-x=yes --with-sdl=yes --disable-rpath --disable-sdltest || return 1
38 make prefix=${pkgdir}/usr install || return 1
39 # make DESTDIR=${pkgdir} install || return 1
42 install -D -m644 ${srcdir}/$pkgname-$pkgver/desktop/$pkgname.svg \
43 ${pkgdir}/usr/share/pixmaps/$pkgname.svg || return 1
44 install -D -m644 ${srcdir}/$pkgname.png \
45 ${pkgdir}/usr/share/pixmaps/$pkgname.png || return 1
47 # Force usage of correct desktop entry
48 install -D -m644 ${srcdir}/$pkgname.desktop \
49 ${pkgdir}/usr/share/applications/$pkgname.desktop || return 1