blob: ce717b8fcff7eceebf577d4cf0b63f0f0aabec15 (
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
|
# Maintainer: Mitch Richters <mjr4077au at gmail com>
# Contributor: Jan Cholasta <grubber at grubber cz>
pkgname=raze-git
pkgver=1.11pre+9+gf3cad8426
pkgrel=1
pkgdesc='Build engine port backed by GZDoom tech (git version)'
arch=('x86_64')
url='https://github.com/coelckers/Raze'
license=('custom:BUILD' 'GPL2')
depends=('gtk3'
'hicolor-icon-theme'
'libgl'
'libjpeg'
'libvpx'
'openal'
'sdl2'
'zmusic>=1.1.13')
makedepends=('cmake'
'desktop-file-utils'
'git')
optdepends=('gxmessage: crash dialog (GNOME)'
'kdialog: crash dialog (KDE)'
'xorg-xmessage: crash dialog (other)')
provides=('raze')
conflicts=('raze')
options=('!lto')
source=("Raze::git+https://github.com/coelckers/Raze"
'raze.desktop')
sha256sums=('SKIP'
'ffc02d8f6f0d4464a74e025d41063f2441d9423d4ed605a0290eb266ae9531c8')
pkgver() {
cd Raze
git describe --tags | tr - +
}
build() {
cd Raze
mkdir -p build
cmake -B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS="${CXXFLAGS} -ffile-prefix-map=\"$PWD\"=." \
-D DYN_GTK=OFF \
-D DYN_OPENAL=OFF \
-D CMAKE_INSTALL_PREFIX=/usr \
-D SYSTEMINSTALL=ON
make -C build
}
package() {
cd Raze
install build/raze -t "$pkgdir"/usr/bin -D
install build/raze.pk3 -t "$pkgdir"/usr/share/raze -D -m 644
desktop-file-install "$srcdir"/raze.desktop --dir="$pkgdir"/usr/share/applications
install source/platform/posix/game.xpm "$pkgdir"/usr/share/icons/hicolor/256x256/apps/raze.xpm -D -m 644
install package/common/buildlic.txt -t "$pkgdir"/usr/share/licenses/$pkgname -D -m 644
install build/soundfonts/raze.sf2 -t "$pkgdir"/usr/share/raze/soundfonts -D -m 644
}
|