PKGBUILDs/community/flightgear-atlas/PKGBUILD
2009-10-09 21:15:33 -05:00

31 lines
1 KiB
Bash

# Maintainer: William Rea <sillywilly@gmail.com>
# Contributor: Hans Janssen <hans@janserv.xs4all.nl>
pkgname=flightgear-atlas
pkgver=0.3.1
pkgrel=2
arch=(i686 x86_64)
pkgdesc="aims to produce and display high quality charts of the world for users of FlightGear."
depends=('flightgear-data' 'libpng' 'libjpeg')
url="http://atlas.sourceforge.net"
license=('GPL')
source=(http://downloads.sourceforge.net/sourceforge/atlas/Atlas-$pkgver.tar.gz \
build-fix.patch)
md5sums=('15bba54523a29928a14f17af449f960e'
'6ad0d34b617d9ca680a63c965479eb7c')
build() {
cd $startdir/src/Atlas-$pkgver
patch -p1 <$srcdir/build-fix.patch
LDFLAGS="-lsgstructure" ./configure --prefix=/usr
perl -ne 's/LIBS =(.+)/LIBS =$1 -lsgstructure/g; print;' src/Makefile >src/Makefile2 && \
mv src/Makefile2 src/Makefile
make || return 1
make DESTDIR=$startdir/pkg install || return 1
mkdir -p $startdir/pkg/usr/share/FlightGear/data
cp $startdir/src/Atlas-$pkgver/src/AtlasPalette $startdir/pkg/usr/share/FlightGear/data
}