summaryrefslogtreecommitdiff
path: root/community/gl-117/PKGBUILD
blob: 9976499124e87131a65d6f6c007914b645d15c6f (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
# $Id: PKGBUILD 18153 2010-05-31 13:21:15Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: andrewski

pkgname=gl-117
pkgver=1.3.2
pkgrel=4
pkgdesc="An action flight simulator"
arch=('i686' 'x86_64')
url="http://www.heptargon.de/gl-117/gl-117.html"
license=("GPL")
depends=('freeglut' 'sdl_mixer' 'libxmu' 'libxi')
source=(http://downloads.sourceforge.net/project/gl-117/gl-117/GL-117%20Source/gl-117-$pkgver-src.tar.bz2
	gl-117.desktop
	gl-117.png)
md5sums=('aad53c5531943529fd769fae4efeae02'
         'db985c5188f1706677b12dc80b797779'
         '6975de5572084b78d3ec1a748de85164')

build() {
  cd $srcdir/gl-117-$pkgver-src
  # This will link everything to these three libraries,
  # but it wouldn't work otherwise.  The devs have been contacted.
  LDFLAGS="-lX11 -lXi -lXmu" ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$pkgdir install || return 1
  install -D -m0644 $srcdir/gl-117.desktop $pkgdir/usr/share/applications/gl-117.desktop && \
  install -D -m0644 $srcdir/gl-117.png $pkgdir/usr/share/pixmaps/gl-117.png
}