updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / trackballs / PKGBUILD
blobdeb9ba6c60708a7c0c3c73a645ad143ed7b7591f
1 # Contributor: Giovanni Cucca <giovanni.cucca@gmail.com>
2 # Maintainer: Dany Martineau <dany.luc.martineau gmail.com>
4 pkgname=trackballs
5 pkgver=1.1.4
6 pkgrel=5
7 pkgdesc="Simple game similar to the classical game Marble Madness on the Amiga in the 80's"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 url="http://trackballs.sourceforge.net/"
11 depends=('guile>=1.8.1' 'sdl_ttf' 'sdl_image' 'sdl_mixer' 'mesa')
12 source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \
13         http://downloads.sourceforge.net/sourceforge/$pkgname/SixLevels.tar.gz \
14                 trackballs.desktop trackballs.patch)
15 md5sums=('84e2e8bb68842a636da91673751279a0' '2bb730894a85334a681cfd9f40fe075e' \
16          '831053e0375b14c905b6cb534ea134a4' '3c383cf4b88330e6b14dea8881667ab9' )
18 build() {
19   cd ${srcdir}/$pkgname-$pkgver
20   patch -p1 < ../trackballs.patch
21   ./configure --prefix=/usr --with-sdl-prefix=/usr --disable-sdltest --with-highscores="~"
22   make || return 1
23   make DESTDIR=${startdir}/pkg install
24   install -m644 ${srcdir}/*.map ${pkgdir}/usr/share/trackballs/levels
25   install -m644 ${srcdir}/*.scm ${pkgdir}/usr/share/trackballs/levels
26   install -m644 ${srcdir}/*.jpg ${pkgdir}/usr/share/trackballs/levels
27   install -m644 ${srcdir}/*.set ${pkgdir}/usr/share/trackballs/levels
28   
29   mkdir -p ${pkgdir}/usr/share/applications
30   install -m644 ${srcdir}/trackballs.desktop \
31                 ${pkgdir}/usr/share/applications/