blob: 08dc9accb69f4120779b727547b1e55db0ca9ab1 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# Maintainer: Pierre Choffet <peuc@wanadoo.fr>
pkgname=return-to-the-roots-git
pkgver=v0.9.5.21.g0537322eb
pkgrel=1
pkgdesc="Free/libre implementation of The Settlers II game engine"
arch=("x86_64")
url="https://siedler25.org/"
license=("GPL3")
makedepends=("cmake" "git" "boost" "mesa" "sdl_mixer" "sdl2_mixer" "curl" "lua53" "miniupnpc" "libsamplerate")
depends=("boost-libs" "libgl" "sdl_mixer" "sdl2_mixer" "miniupnpc" "lua53" "libsamplerate")
optdepends=("siedler2-data")
conflicts=("return-to-the-roots" "s25rttr" "s25rttr-nightly-bin")
provides=("return-to-the-roots" "s25rttr")
install="return-to-the-roots.install"
changelog="ChangeLog"
source=("git+https://github.com/Return-To-The-Roots/s25client.git"
"git+https://github.com/Return-To-The-Roots/languages.git"
"git+https://github.com/satoren/kaguya.git"
"git+https://github.com/Return-To-The-Roots/libendian.git"
"git+https://github.com/Return-To-The-Roots/liblobby.git"
"git+https://github.com/Return-To-The-Roots/libsiedler2.git"
"git+https://github.com/Return-To-The-Roots/libutil.git"
"git+https://github.com/Return-To-The-Roots/mygettext.git"
"git+https://github.com/Return-To-The-Roots/s-c.git"
"git+https://github.com/Return-To-The-Roots/s25edit.git"
"git+https://github.com/Return-To-The-Roots/s25update.git"
"git+https://github.com/Return-To-The-Roots/version.git"
"git+https://github.com/mat007/turtle.git"
"rttr.sh" "return-to-the-roots.install")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'b623d74292ca332b65290f15adb0c41994a80eb4f5d247c713a0d43775f9e8f8'
'888a1cd55350971ec3660de79c82760be63ed40617e8ef6931c20b07bc73e1a9')
pkgver() {
cd "s25client/"
git describe --tags | sed 's/-/./g'
}
prepare() {
cd "s25client/"
# Link to prepared submodules
git config submodule.RTTR/languages.url $srcdir/languages
git config submodule.contrib/kaguya.url $srcdir/kaguya
git config submodule.libendian.url $srcdir/libendian
git config submodule.liblobby.url $srcdir/liblobby
git config submodule.libsiedler2.url $srcdir/libsiedler2
git config submodule.libutil.url $srcdir/libutil
git config submodule.mygettext.url $srcdir/mygettext
git config submodule.s-c.url $srcdir/s-c
git config submodule.s25edit.url $srcdir/s25edit
git config submodule.s25update.url $srcdir/s25update
git config submodule.version.url $srcdir/version
git config submodule.contrib/turtle.url $srcdir/turtle
# Get modules
git -c protocol.file.allow=always submodule update
}
build() {
cd s25client
# Build
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="${pkgdir}/usr" \
-DBUILD_TESTING=Off \
-DRTTR_BINDIR="bin" -DRTTR_DATADIR="share/s25rttr" \
-DRTTR_LIBDIR="lib/s25rttr" -DRTTR_EXTRA_BINDIR="bin" \
-DRTTR_USE_SYSTEM_SAMPLERATE=On \
-DLUA_INCLUDE_DIR=/usr/include/lua5.3/ ..
make
}
package() {
cd "s25client/build"
# Use make based installer
make install
# Deal with extra binaries
rm ${pkgdir}/usr/bin/s25update
# Copy launch script
install -Dm755 "${srcdir}/rttr.sh" "${pkgdir}/usr/bin"
# Get additional files
mkdir -p ${pkgdir}/usr/share/applications
cp "${srcdir}/s25client/tools/release/debian/s25rttr.desktop" "${pkgdir}/usr/share/applications/"
mkdir -p ${pkgdir}/usr/share/pixmaps
cp "${srcdir}/s25client/tools/release/debian/s25rttr.png" "${pkgdir}/usr/share/pixmaps/"
}
|