pkgname=freeorion pkgver=0.4.7 pkgrel=3 pkgdesc="turn-based space empire and galactic conquest (4X) computer game" arch=('x86_64') url="https://github.com/freeorion/freeorion/" license=('GPL2') depends=('boost-libs' 'python2' 'sdl2' 'libvorbis' 'glew' 'libtiff' 'libjpeg-turbo' 'openal' 'hicolor-icon-theme' 'freetype2') makedepends=('boost' 'cmake' 'doxygen') install=freeorion.install conflicts=('gigi') replaces=('gigi') source=("$pkgname-$pkgver::https://github.com/freeorion/freeorion/archive/v$pkgver.tar.gz") sha256sums=('e840db9d9ff837a973c0f32be41a5ad29855eeac0a1541b036d0b183d6fbbaad') prepare() { cd $srcdir/$pkgname-$pkgver mkdir -p build } build() { cd $srcdir/$pkgname-$pkgver/build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=Release \ .. make } package() { cd $srcdir/$pkgname-$pkgver/build make DESTDIR=$pkgdir install }