pkgname=simgear pkgver=2016.4.3 _pkgver=2016.4 pkgrel=1 pkgdesc="FOSS libraries for quickly assembling 3d simulations, games, and visualization applications." arch=('x86_64') depends=('glu' 'freeglut' 'freealut' 'plib' 'openscenegraph' 'libxrandr') makedepends=('boost' 'cmake' 'mesa') license=("GPL") url="http://flightgear.sourceforge.net/" options=('!makeflags' 'staticlibs') source=("http://downloads.sourceforge.net/project/flightgear/release-$_pkgver/simgear-$pkgver.tar.bz2") sha1sums=('40bbf5674893334ee84cc696c31ad034c6779a76') build() { cd $pkgname-$pkgver cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib . make } package() { cd $pkgname-$pkgver make DESTDIR=$pkgdir install }