updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / njam / PKGBUILD
blob89ffaeb64c140ebe627f0b888ba56132f805226b
1 # Contributor: Stefano "GeniE" Faraone <xgotux@gmail.com>
2 # Maintainer: Markus Heidelberg <markus dot heidelberg at web dot de>
4 pkgname=njam
5 pkgver=1.25
6 pkgrel=7
7 pkgdesc="Full-featured cross-platform pacman-like game"
8 url="http://njam.sourceforge.net/"
9 license=('GPL')
10 arch=('i686' 'x86_64')
11 depends=('sdl_image' 'sdl_mixer' 'sdl_net')
12 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver-src.tar.gz njam.desktop njam-1.25-gcc45-archlinux.patch)
13 md5sums=('b49f65a0c5df83de85df4f985337e2eb' 'a2e8f7e419de1b864c31342003ebcd4d' '0add7095857fe517d35abdbd79e25259')
15 build() {
16         cd ${srcdir}/${pkgname}-${pkgver}-src
17         patch -p0 < ${srcdir}/njam-1.25-gcc45-archlinux.patch
18         ./configure --prefix=/usr
19         make clean || return 1 # Delete the binary files which are distributed in the tar file
20         make || return 1
21         make DESTDIR=${pkgdir} install
22         install -Dm644 njamicon.ico ${pkgdir}/usr/share/pixmaps/njamicon.ico
23         install -Dm644 ${srcdir}/njam.desktop ${pkgdir}/usr/share/applications/njam.desktop