blob: e0966098e3046054f462831e58613be6aa193584 (
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
107
108
109
|
# Maintainer:
# Contributor: Frederic Bezies <fredbezies at gmail dot com>
_pkgname="woof-doom"
pkgname="$_pkgname-git"
pkgver=15.2.0.r265.g4968b3c
pkgrel=1
pkgdesc="Doom port remaining faithful to Lee Killough's MBF on DOS"
arch=("x86_64")
url="https://github.com/fabiangreffrath/woof"
license=('GPL-2.0-or-later')
depends=(
'hicolor-icon-theme'
'libebur128'
'libsndfile'
'openal'
)
makedepends=(
'cmake'
'git'
'ninja'
'python'
## sdl3
'jack'
'wayland-protocols'
'alsa-lib'
'mesa'
'libpulse'
'libxrandr'
'libxinerama'
'wayland'
'libxkbcommon'
'ibus'
'libxss'
'pipewire'
'libdecor'
'vulkan-headers'
'sndio'
'libxext'
'libxrender'
'libx11'
'libgl'
'libxcursor'
'hidapi'
'libusb'
)
optdepends=(
'fluidsynth'
'libxmp'
)
provides=("$_pkgname")
conflicts=("$_pkgname")
_pkgsrc="$_pkgname"
source=(
"$_pkgsrc"::"git+$url.git"
"sdl3"::"git+https://github.com/libsdl-org/SDL.git"
)
sha256sums=(
'SKIP'
'SKIP'
)
pkgver() {
cd "$_pkgsrc"
git describe --long --tags --abbrev=7 --match='woof_*' \
| sed -E 's/^[^0-9]*//;s/([^-]*-g)/r\1/;s/-/./g'
}
build() {
local _cmake_options=(
-B build_sdl3
-S sdl3
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-Wno-dev
-DBUILD_SHARED_LIBS=OFF
-DSDL_RPATH=OFF
-DSDL_STATIC=ON
)
cmake "${_cmake_options[@]}"
cmake --build build_sdl3
DESTDIR="fakeinstall" cmake --install build_sdl3
_cmake_options=(
-B build
-S "$_pkgsrc"
-G Ninja
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX='/usr'
-Wno-dev
-DSDL3_DIR="$srcdir/fakeinstall/usr/lib/cmake/SDL3"
)
cmake "${_cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|