summaryrefslogtreecommitdiff
path: root/community/flightgear-atlas/PKGBUILD
blob: ee36ea5ae6eed10e8709df08bf9d9a0dc60ea697 (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
# Maintainer: William Rea <sillywilly@gmail.com>
# Contributor: Hans Janssen <hans@janserv.xs4all.nl>

pkgname=flightgear-atlas
pkgver=0.3.1
pkgrel=3
arch=(i686 x86_64 'mips64el')
pkgdesc="aims to produce and display high quality charts of the world for users of FlightGear."
depends=('flightgear-data' 'libpng' 'libjpeg')
makedepends=('simgear')
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
}