desktop/freeorion/PKGBUILD

43 lines
1.0 KiB
Bash
Raw Normal View History

pkgname=freeorion
2018-02-13 08:22:36 +08:00
pkgver=0.4.7.1
pkgrel=1
2016-05-06 02:47:57 +08:00
pkgdesc="turn-based space empire and galactic conquest (4X) computer game"
arch=('x86_64')
2016-05-06 02:47:57 +08:00
url="https://github.com/freeorion/freeorion/"
license=('GPL2')
depends=('boost-libs' 'python2' 'sdl2' 'libvorbis' 'glew' 'libtiff' 'libjpeg-turbo' 'openal' 'hicolor-icon-theme' 'freetype2')
2017-05-31 20:15:03 +08:00
makedepends=('boost' 'cmake' 'doxygen')
2016-05-06 02:47:57 +08:00
install=freeorion.install
conflicts=('gigi')
replaces=('gigi')
2018-02-13 08:22:36 +08:00
source=("$pkgname-$pkgver::https://github.com/freeorion/freeorion/archive/v$pkgver.tar.gz"
boost1.37.patch)
sha256sums=('924a88464e92c14aa8f6722b57f702e07d43c7257cf272150c98bc3c1124a87e'
'9e028baf4faff7670a23167a2021686354cbf9d6f78898fc7be1dedf61a7658a')
2016-05-06 02:47:57 +08:00
prepare() {
2017-06-01 19:49:23 +08:00
cd $srcdir/$pkgname-$pkgver
2016-05-06 02:47:57 +08:00
2018-02-13 08:22:36 +08:00
patch -Np1 -i ../boost1.37.patch
2016-05-06 02:47:57 +08:00
mkdir -p build
}
build() {
2017-06-01 19:49:23 +08:00
cd $srcdir/$pkgname-$pkgver/build
cmake \
2016-05-06 02:47:57 +08:00
-DCMAKE_INSTALL_PREFIX=/usr \
2017-06-01 19:49:23 +08:00
-DCMAKE_INSTALL_LIBDIR=lib \
2016-05-06 02:47:57 +08:00
-DCMAKE_BUILD_TYPE=Release \
..
2016-05-06 02:47:57 +08:00
make
}
package() {
2017-06-01 19:49:23 +08:00
cd $srcdir/$pkgname-$pkgver/build
2016-05-06 02:47:57 +08:00
make DESTDIR=$pkgdir install
}