summaryrefslogtreecommitdiff
path: root/community/flobopuyo/PKGBUILD
blob: 4531d93f9c707eb1616a93779cc70b65ff3ec352 (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
# $Id: PKGBUILD 67617 2012-03-13 14:21:37Z lcarlier $
# Maintainer : Jaroslav Lichtblau <tu@dragonlord.cz>
# Contributor: Angelo Theodorou <encelo@users.sourceforge.net>
# contributor: Laurent Carlier <lordheavym@gmail.com>

pkgname=flobopuyo
pkgver=0.20
pkgrel=6
pkgdesc="Clone of the famous PuyoPuyo"
arch=('i686' 'x86_64')
url="http://freshmeat.net/projects/$pkgname/"
license=('GPL')
depends=('libgl' 'sdl_image' 'sdl_mixer')
makedepends=('mesa' 'patch')
changelog=$pkgname.changelog
source=(http://www.sourcefiles.org/Games/Puzzle/$pkgname-$pkgver.tgz \
	$pkgname-makefile.patch $pkgname-0.20-gcc4.patch \
	$pkgname-0.20-libs.patch
	$pkgname.desktop
	$pkgname.png)
md5sums=('88961898c9dd48b60464f6f10f695b8b'
         '4c6667be791681d43bb7ea1b6f9f9072'
         'bb8afd6e04bde08fd33e22c466674878'
         'b7c0fd71cd948bbc43a86742ffad6d86'
         '20ebbe6e7ad57fe5f89a03ee40b4257e'
         'd9abe591e6cdd654269474444df1ec9d')

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

  patch -Np0 < ${srcdir}/$pkgname-makefile.patch
  patch -Np1 < ${srcdir}/$pkgname-$pkgver-gcc4.patch
  patch -Np1 < ${srcdir}/$pkgname-$pkgver-libs.patch

  make
}

package() {
  cd ${srcdir}/$pkgname-$pkgver

  make DESTDIR=${pkgdir} install

  install -D -m644 man/${pkgname}.6 ${pkgdir}/usr/share/man/man6/$pkgname.6
  install -D ${srcdir}/$pkgname.desktop ${pkgdir}/usr/share/applications/$pkgname.desktop
  install -D ${srcdir}/$pkgname.png ${pkgdir}/usr/share/pixmaps/$pkgname.png
}