summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3bbaf9b8b1c858a916c4d079d4bdf1f67e693ab1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Maintainer: envolution
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Liberion <liberion[at]gmail[.]com> patch libpng compile 
# Contributor: SanskritFritz (gmail)

pkgname=briquolo
pkgver=0.5.7
pkgrel=6
pkgdesc="Breakout game with 3D representation based on OpenGL."
arch=('i686' 'x86_64')
url="http://briquolo.free.fr/"
license=('GPL')
depends=('sdl_mixer' 'sdl_ttf' 'glu')
makedepends=('patch' 'autoconf' 'automake' 'cvs')
options=('!makeflags')
source=(http://briquolo.free.fr/download/$pkgname-$pkgver.tar.bz2 \
        $pkgname.desktop $pkgname.png $pkgname-gcc.patch $pkgname-libpng.patch \
        $pkgname-resolution_const_fix.patch)
md5sums=('e24d22d2d719d64c231d3d76f9291d6e'
         '0fb2744c4bb0e36bf9599a77a54183d7'
         '6a310dfa94225c9e16571e4e25eebfb3'
         'd3077d1a57e531bbe8d1b15dae09969f'
         'f9b3afa24803a02d23616b859d880b1d'
         'dacbb109f5ede27507025cd5a86b42fe')

prepare() {
  cd "${srcdir}"/$pkgname-$pkgver

# Fixes gcc 4.3 compilation
  patch -Np0 -i "${srcdir}"/$pkgname-gcc.patch
# Fixes libpng compilation problem
  patch -Np1 -i "${srcdir}"/$pkgname-libpng.patch
# Fix resolution call
  patch -p1 -i "${srcdir}"/$pkgname-resolution_const_fix.patch
}

build() {
  cd "${srcdir}"/$pkgname-$pkgver

  autoreconf -fi
  ./configure --prefix=/usr --with-x=yes --with-sdl=yes --disable-rpath --disable-sdltest
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver
# Fix for buggy Makefile - give it a desktop file to process
  install -Dm644 "${srcdir}"/$pkgname.desktop "${pkgdir}"/usr/share/applications/$pkgname.desktop

  make prefix="${pkgdir}"/usr install
#  make DESTDIR="${pkgdir}" install

# Icons
  install -Dm644 "$srcdir/$pkgname-$pkgver/desktop/$pkgname.svg" "$pkgdir/usr/share/pixmaps/$pkgname.svg"
  install -Dm644 "$srcdir/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"

# Force usage of correct desktop entry
  install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir"/usr/share/applications/$pkgname.desktop
}