blob: 8b1a6f14a63905964a364d4ab9b07e8fa2457e9f (
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
|
# Maintainer: Melanie Scheirer <mel@nie.rs>
# Contributor: Georg Pfahler <georg@grgw.de>
pkgname=rbdoom3-bfg-git
pkgver=r2027.a51833e4
pkgrel=1
pkgdesc="Doom 3 BFG Edition with soft shadows, cleaned up source, Linux and 64 bit Support"
arch=(i686 x86_64)
url="https://github.com/RobertBeckebans/RBDOOM-3-BFG"
license=(GPL3)
depends=(ffmpeg glew openal sdl2)
makedepends=(cmake git rapidjson zip directx-shader-compiler)
optdepends=('doom3bfg-data: packaged game data files')
provides=(rbdoom3-bfg)
conflicts=(rbdoom-3-bfg)
install=rbdoom3-bfg-git.install
source=("$pkgname::git+https://github.com/RobertBeckebans/RBDOOM-3-BFG.git"
'rbdoom3-bfg-git.desktop'
'doom3bfg.png')
sha256sums=('SKIP'
'a651aa2e71a8a525e66173a8f76b907712b73c950c88f5468ccab79f7533361f'
'0fb6a3bb9b47cad65d5012ba20dc9de3b1487f4ac1908ee847e6087511b7f09e')
pkgver() {
cd "$pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$pkgname"
git submodule update --init --recursive
}
build() {
cmake -DCMAKE_BUILD_TYPE=Release \
-DONATIVE=ON \
-DFFMPEG=OFF \
-DBINKDEC=ON \
-DCMAKE_INSTALL_PREFIX=/usr \
-DUSE_SYSTEM_ZLIB=1 \
-DUSE_SYSTEM_LIBPNG=1 \
-DUSE_SYSTEM_LIBJPEG=1 \
-DUSE_SYSTEM_LIBGLEW=1 \
-DUSE_SYSTEM_RAPIDJSON=1 \
-B build -S "$pkgname/neo"
cmake --build build
}
package() {
mkdir -p "$pkgdir/usr/share/games/doom3bfg/base"
cp -r "$srcdir/rbdoom3-bfg-git/base/renderprogs2" "$pkgdir/usr/share/games/doom3bfg/base"
install -Dm755 "$srcdir/build/RBDoom3BFG" "$pkgdir/usr/bin/rbdoom3bfg"
install -Dm644 "$srcdir/doom3bfg.png" "$pkgdir/usr/share/pixmaps/doom3bfg.png"
install -Dm644 "$srcdir/rbdoom3-bfg-git.desktop" "$pkgdir/usr/share/applications/rbdoom3-bfg-git.desktop"
}
|