blob: 32b655b3f49bb8493790b4e8ea9d8c15a675193a (
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
|
# Maintainer: Patrick Rogers <patrick@thewebzone.net>
pkgname='linux-air-combat'
pkgver=09p37
pkgrel=2
pkgdesc="Free open source combat flight simulator"
arch=('x86_64' 'aarch64' 'armv6h' 'armv7h')
url="https://askmisterwizard.com/2019/LinuxAirCombat/LinuxAirCombat.htm"
license=('unknown')
depends=('freeglut' 'sdl' 'sdl_mixer' 'glu' 'mesa')
makedepends=('gcc')
optdepends=('espeak: adds voice effects in-game'
'mumble: team voice integration')
source=("https://sourceforge.net/projects/linuxaircombat/files/Choose%20Your%20Platform/Most%20LINUX%20Desktops%20%28in%20the%20global%20usr%20filesystem%20for%20all%20users%29/Lac${pkgver}.tar.gz")
md5sums=('SKIP')
_resource_dir='/usr/share/lac'
build() {
cd "Lac${pkgver}"
make
}
package() {
cd "Lac${pkgver}"
mkdir -p "$pkgdir"/usr/bin
mkdir -p "$pkgdir"/${_resource_dir}
mkdir -p "$pkgdir"/${_resource_dir}/music
mkdir -p "$pkgdir"/${_resource_dir}/sounds
mkdir -p "$pkgdir"/${_resource_dir}/models
mkdir -p "$pkgdir"/${_resource_dir}/textures
mkdir -p "$pkgdir"/usr/share/applications
# Copying main executable file...
cp bin/Release/Lac${pkgver} "$pkgdir"/usr/bin/
mv "$pkgdir"/usr/bin/Lac${pkgver} "$pkgdir"/usr/bin/lac
chmod +x "$pkgdir"/usr/bin/lac
cp lac.png "$pkgdir"/$_resource_dir/.
chmod +r "$pkgdir"/$_resource_dir/lac.png
cp DefaultHeightMap.LAC "$pkgdir"/$_resource_dir/DefaultHeightMap.LAC
chmod +r "$pkgdir"/$_resource_dir/DefaultHeightMap.LAC
cp bin/music/* "$pkgdir"/${_resource_dir}/music
chmod +r "$pkgdir"/${_resource_dir}/music/*
cp bin/sounds/* "$pkgdir"/${_resource_dir}/sounds
chmod +r "$pkgdir"/${_resource_dir}/sounds/*
cp bin/models/* "$pkgdir"/${_resource_dir}/models
chmod +r "$pkgdir"/${_resource_dir}/models/*
cp bin/textures/* "$pkgdir"/${_resource_dir}/textures
chmod +r "$pkgdir"/${_resource_dir}/textures/*
# Supplied .desktop file is broken
# cp lac.desktop "$pkgdir"/usr/share/applications/
# chmod +r "$pkgdir"/usr/share/applications/lac.desktop
# Write working .desktop file
echo "[Desktop Entry]
Type=Application
Name=Linux Air Combat
GenericName=Flight Simulator
Comment=Open source combat flight simulator
Terminal=false
Icon=/usr/share/lac/lac.png
Exec=sh -c lac
Keywords=lac;game;air;flight;combat;linux;plane;
Categories=Game
StartupNotify=true" > "$pkgdir"/usr/share/applications/lac.desktop
chmod +r "$pkgdir"/usr/share/applications/lac.desktop
}
|