blob: b66fa481ea33ca67510de73f14785d554a6ee1be (
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
|
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Felix Golatofski <contact@xdfr.de>
# Contributor: Sam S. <smls75@gmail.com>
# Contributor: Daniel Scharrer <daniel@constexpr.org>
_pkgname=arx-libertatis
pkgname=$_pkgname-git
pkgver=1.21.r18900.ga2f01244a
pkgrel=1
pkgdesc='Cross-platform port of Arx Fatalis, a first-person role-playing game (executables only) (Git)'
url='https://arx-libertatis.org/'
arch=('i686' 'x86_64')
license=('GPL3')
depends=('sdl' 'zlib' 'boost-libs' 'glm' 'freetype2' 'openal' 'glew')
optdepends=('qt5-tools: enable built-in crash handler (Qt5 version; recompile needed)'
'qt4: enable built-in crash handler (Qt4 version; recompile needed)'
'curl: enable built-in crash handler. (recompile needed)'
'gdb: generate detailed crash reports'
'arx-fatalis-data-demo: game data from official freeware demo'
'arx-fatalis-data-gog: game data from gog.com installer'
'arx-fatalis-data-copy: gamedata from existing Windows installation')
makedepends=('boost' 'cmake' 'git')
provides=('arx')
source=("git+https://github.com/arx/ArxLibertatis.git"
"git+https://github.com/arx/ArxLibertatisData.git")
sha512sums=('SKIP'
'SKIP')
install='arx-libertatis.install'
pkgver() {
cd "$srcdir/ArxLibertatis"
# cutting off 'ArxFatalis.' prefix that presents in the git tag
git describe --long | sed 's/^ArxFatalis.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/ArxLibertatis"
cmake . -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBEXECDIR=lib/arx \
-DCMAKE_BUILD_TYPE=Release \
-DICONDIR=/usr/share/icons/hicolor/128x128/apps \
-DINSTALL_SCRIPTS=ON \
-DSTRICT_USE=ON \
-DUSE_NATIVE_FS=ON \
-DUSE_OPENAL=ON \
-DUSE_OPENGL=ON \
-DDATA_FILES=../ArxLibertatisData
# UNITY_BUILD
# produces a more optimized binary, but uses a lot of RAM during
# compilation - disable if low on memory.
#
# CMAKE_BUILD_TYPE=Release
# can be changed to CMAKE_BUILD_TYPE=Debug to get a debug build,
# which will run signifincantly slower but enables more runtime
# checks and generates better crash reports.
cmake --build .
}
package() {
cd "$srcdir/ArxLibertatis"
DESTDIR="${pkgdir}" cmake --install .
install -Dm644 README.md \
"$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 CHANGELOG \
"$pkgdir/usr/share/doc/$pkgname/CHANGELOG"
install -Dm644 AUTHORS \
"$pkgdir/usr/share/doc/$pkgname/AUTHORS"
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$_installname/LICENSE
install -Dm644 LICENSE.DejaVu \
"$pkgdir"/usr/share/licenses/$_installname/LICENSE.DejaVu
}
|