PKGBUILDs/community/gl-117/PKGBUILD
2009-10-09 21:15:33 -05:00

26 lines
870 B
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: andrewski
pkgname=gl-117
pkgver=1.3.2
pkgrel=3
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://dl.sourceforge.net/sourceforge/gl-117/gl-117-$pkgver-src.tar.bz2 \
gl-117.desktop \
gl-117.png)
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 gl-117.desktop $pkgdir/usr/share/applications/ && \
install -D -m0644 gl-117.png $pkgdir/usr/share/pixmaps/
}