summaryrefslogtreecommitdiff
path: root/community/gnujump/PKGBUILD
blob: 961115c5db7addf2e2523e9dd836d96118c1784f (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
# $Id: PKGBUILD 82500 2013-01-19 17:34:43Z jsteel $
# Maintainer: jsteel <mail at jsteel dot org>
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Patrik Ilg <p.ilg@arcor.de>

pkgname=gnujump
pkgver=1.0.8
pkgrel=3
pkgdesc="A clone of the simple yet addictive game Xjump"
arch=('i686' 'x86_64' 'mips64el')
url="http://gnujump.es.gnu.org"
license=('GPL3')
depends=('libgl' 'sdl_image' 'sdl_mixer')
makedepends=('mesa' 'glu')
source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
        ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname.png
        $pkgname.desktop)
md5sums=('a8bdd3402a9d12faa5835a2c41ef7b3e'
         'aff6af66e632095aa3154e952571f9b5'
         'd875e92130b669a4148908bc391a2a8c')

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

  LDFLAGS="-lm"

  ./configure --prefix=/usr

  make
}

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

  make DESTDIR="$pkgdir"/ install

  install -Dm644 "$srcdir"/$pkgname.png "$pkgdir"/usr/share/pixmaps/$pkgname.png
  install -Dm644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
}