mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
43 lines
1.0 KiB
Bash
43 lines
1.0 KiB
Bash
pkgname=freeorion
|
|
pkgver=0.4.7.1
|
|
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=("$pkgname-$pkgver::https://github.com/freeorion/freeorion/archive/v$pkgver.tar.gz"
|
|
boost1.37.patch)
|
|
sha256sums=('924a88464e92c14aa8f6722b57f702e07d43c7257cf272150c98bc3c1124a87e'
|
|
'9e028baf4faff7670a23167a2021686354cbf9d6f78898fc7be1dedf61a7658a')
|
|
|
|
prepare() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
patch -Np1 -i ../boost1.37.patch
|
|
|
|
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
|
|
}
|