updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / sdl-ball / PKGBUILD
blobe1a95838993de152fc0e52d5b697ec5882fc233f
1 # Contributor: Christoph Zeiler <rabyte*gmail>
2 # Maintainer: yugrotavele <yugrotavele at archlinux dot us>
4 pkgname=sdl-ball
5 pkgver=1.01
6 pkgrel=2
7 pkgdesc="A Breakout clone with pretty graphics"
8 arch=('i686' 'x86_64')
9 url="http://sdl-ball.sourceforge.net/"
10 license=('GPL3')
11 depends=('libgl' 'wiiuse' 'sdl_mixer' 'sdl_ttf' 'sdl_image' 'mesa' 'gimp>=2' 'libbtctl')
12 source=($pkgname-$pkgver.tar.bz2::http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$pkgname-$pkgver.tar.bz2/download
13         $pkgname.desktop)
14 md5sums=('adf6ff4f4e4ffcff63428281f27c96d7'
15          'eb9fb4483bd01020c8aba0db74c6cbff')
17 build() {
18   cd "$pkgname"
20   export LIBS="-lwiiuse"
21   export CFLAGS="${CXXFLAGS} -DWITH_WIIUSE"
23   make clean
24   make DATADIR="/usr/share/$pkgname/themes/"
26   mkdir -p $pkgdir/usr/{bin,share/{$pkgname,applications,pixmaps}}
27   install -m755 $pkgname "$pkgdir/usr/bin/"
28   cp -rf README themes/ "$pkgdir/usr/share/$pkgname/"
29   install -m644 themes/default/icon32.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
30   install -m644 ../$pkgname.desktop "$pkgdir/usr/share/applications/"
32   cd leveleditor/gimp-leveleditor
33   gimptool-2.0 --build gimp-sdlball.c
34   install -Dm755 gimp-sdlball "$pkgdir/usr/lib/gimp/2.0/plug-ins/gimp-sdlball"