blob: a58c09bf1049f98a5131149509d3e1081abf897a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Pranav S <pranav.ppanch@gmail.com>
pkgname=freeciv21
pkgver=3.0_patch.5
pkgrel=1
pkgdesc="Freeciv for the 21st Century"
arch=('x86_64')
url="https://github.com/longturn/freeciv21"
license=('GPL3')
depends=( 'lua' 'qt5-base' 'qt5-svg' 'sdl2_mixer' 'karchive5' 'libertinus-font')
makedepends=('cmake' 'ninja' 'python')
conflicts=('freeciv21-unstable')
source=("$pkgname-$pkgver.tar.gz::https://github.com/longturn/freeciv21/releases/download/v3.0-patch.5/Freeciv21-v3.0-patch.5.tar.gz")
sha256sums=('ab5684743c57668f2e04c220e76887bf00a501d62c769dbdf00de2cfb0b9a02f')
build() {
cd Freeciv21-v3.0-patch.5
cmake . -B build -G Ninja\
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_BUILD_TYPE='None' \
-DFREECIV_DOWNLOAD_FONTS=OFF \
-Wno-dev \
-Wno-deprecated-declarations
cmake --build build
}
check() {
cd Freeciv21-v3.0-patch.5
ctest --output-on-failure
}
package() {
cd Freeciv21-v3.0-patch.5
DESTDIR="$pkgdir" cmake --install build
}
|