desktop/freeorion/PKGBUILD
2017-05-31 13:15:03 +01:00

42 lines
986 B
Bash

# Maintainer: ugjka <ugis.germanis@gmail.com>
pkgname=freeorion
pkgver=0.4.7
pkgrel=1
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=("https://github.com/freeorion/freeorion/releases/download/v0.4.7/FreeOrion_v0.4.7_2017-04-24.60d06dc_Source.tar.gz"
'freeorion.install')
md5sums=('30db1505f398403df04707b6e69f79f2'
'bdbd69c55fa91add1f8b17ad7f23ee6d')
prepare() {
cd $srcdir/src-tarball
mkdir -p build
}
build() {
cd $srcdir/src-tarball/build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
..
make
}
package() {
cd $srcdir/src-tarball/build
make DESTDIR=$pkgdir install
}