blob: 137ff829e8be786af773c34116c1596ffdcdceac (
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
|
# Maintainer: Gustavo Ramos Rehermann <rehermann6046 at gmail.com>
# Contributor: Mikael Eriksson <mikael_eriksson at miffe.org>
# Contributor: Pol Marcet Sardà <polmarcetsarda at gmail.com>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: Christoph Zeiler <archNOSPAM_at_moonblade.dot.org>
# Contributor: Curtis Smith <kman922002 at gmail.com>
pkgbase=odamex-git
pkgname=odamex-git
pkgver=10.4.0.r39.g0880dd097
pkgrel=1
pkgdesc='A free client/server multiplayer engine for the classic FPS Doom.'
arch=('i686' 'x86_64' 'aarch64')
url='http://odamex.net/'
license=('GPL')
depends=('sdl2_mixer' 'sdl2' 'portmidi' 'miniupnpc' 'curl' 'zlib' 'libpng')
makedepends=('git' 'cmake' 'deutex')
optdepends=('timidity++: Required for the SDL2 MIDI music backend'
'doomseeker: Online Doom multiplayer server launcher')
source=(
"odamex-git::git+https://github.com/odamex/odamex.git#branch=stable"
#"git+https://github.com/curl/curl.git"
#"git+https://github.com/madler/zlib.git"
#"git+https://github.com/glennrp/libpng.git"
"git+https://github.com/fltk/fltk"
"git+https://github.com/protocolbuffers/protobuf.git"
"git+https://github.com/miniupnp/miniupnp.git"
"git+https://github.com/open-source-parsers/jsoncpp.git")
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
provides=('odamex')
conflicts=('odamex')
pkgver() {
cd "odamex-git"
printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}
_submodlibs=(fltk protobuf miniupnp jsoncpp)
prepare() {
cd odamex-git
git submodule init
for SUBMODLIB in "${_submodlibs[@]}"; do
git config submodule.libraries/$SUBMODLIB.url "$srcdir/$SUBMODLIB"
done
git submodule--helper update
}
_configure() {
cd "odamex-git"
export CFLAGS="-DSDL20 $CFLAGS"
export CXXFLAGS="-DSDL20 $CXXFLAGS"
cmake -DCMAKE_BUILD_TYPE=None \
-D BUILD_LAUNCHER=True \
-DCMAKE_INSTALL_PREFIX=/usr \
.
}
build() {
_configure
make
}
package() {
cd "odamex-git"
make DESTDIR="$pkgdir/" install
}
# vim:set ts=2 sw=2 et:
|