blob: 7e22ca63398b5bc3fe7c47922bd88bb90271c8ea (
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: kinker31<dp223171@gmail.com>
pkgname=helion-git
pkgver=0.9.6.1.r129.g664657f
pkgrel=6
pkgdesc="A modern Doom FPS engine, made with C# and GPU usage in mind"
arch=('x86_64')
url="https://github.com/Helion-Engine/Helion"
license=('GPL3')
# Might be a good idea investigating if we can ignore most of the dependencies or not.
depends=(openal
fluidsynth
sdl2
glfw
'zmusic>=1.1.8')
makedepends=('dotnet-runtime' 'clang')
conflicts=('helion')
source=("git+https://github.com/Helion-Engine/Helion"
"helion.desktop"
"helion.ico")
sha256sums=('SKIP' 'SKIP' 'SKIP')
pkgver() {
cd "Helion"
git describe --long --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "Helion/Client"
dotnet publish \
-c Release \
-r linux-x64 \
-p:SelfContainedRelease=true \
-p:AOT=true
}
package() {
cd "Helion/Publish/linux-x64_AOT/"
# Helion doesn't check for native Linux directories at the moment, so /opt will have to do.
#There might be a better way of going about this, but right now this works.
mkdir -m=644 -p "$pkgdir"/opt/Helion/SoundFonts
install -Dm755 ./Helion "$pkgdir"/opt/Helion/
install -Dm644 ./assets.pk3 "$pkgdir"/opt/Helion/
install -Dm644 ./libfluidsynth.so.3 "$pkgdir"/opt/Helion/
install -Dm644 ./libglfw.so.3.3 "$pkgdir"/opt/Helion/
install -Dm644 ./libSDL2.so "$pkgdir"/opt/Helion/
install -Dm644 ./libzmusic.so "$pkgdir"/opt/Helion/
install -Dm644 ./README.md "$pkgdir"/opt/Helion/
install -Dm644 ./SoundFonts/Default.sf2 "$pkgdir"/opt/Helion/SoundFonts/
mkdir -m=644 -p "$pkgdir"/usr/share/applications/ && mkdir -m=644 -p "$pkgdir"/usr/share/icons/
install -Dm755 "$srcdir"/helion.desktop "$pkgdir"/usr/share/applications/helion.desktop
install -Dm755 "$srcdir"/helion.ico "$pkgdir"/usr/share/pixmaps/helion.ico
}
|