blob: ddc1fcabbd37fd063bad52e778ea519b4a82b7e1 (
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
|
# Maintainer: munsternet <munsternet at ik dot me>
_pkgname=trackaudio
pkgname=trackaudio-git
pkgver=1.3.0.beta.3.r9.g5ba0441
pkgrel=1
pkgdesc="Next-generation cross-platform Audio-For-VATSIM ATC Client"
arch=(x86_64 aarch64)
url="https://github.com/pierr3/TrackAudio"
license=('GPL-3.0-or-later')
provides=("${_pkgname}")
conflicts=("${_pkgname}-bin")
depends=()
makedepends=(
gcc
git
ninja
nodejs-cmake-js
npm
unzip
zip)
source=(
"$_pkgname::git+https://github.com/pierr3/TrackAudio.git#branch=main"
'trackaudio.desktop'
)
b2sums=('SKIP'
'e5d905932c031af328c3139cf225113cbdbb9abf0e0e00c6f58ffc1a78dbf3a21afb787c74768c3e18449b342a41f0117774db52b9f20229fd7fdd02b80a7b6e')
pkgver() {
cd "$_pkgname"
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$_pkgname"
git submodule update --init --remote backend/vcpkg
git submodule update --init --remote backend/extern/afv-native
cd backend/extern/afv-native && git checkout unicom2
}
build() {
cd "$_pkgname"
npm run build:backend
npm install
npm run build:unpack
}
package() {
mkdir -p "$pkgdir/opt/TrackAudio"
mkdir -p "$pkgdir/usr/bin"
install -Dm644 trackaudio.desktop -t "$pkgdir/usr/share/applications/"
cp -r $_pkgname/dist/linux-unpacked/* "$pkgdir/opt/TrackAudio/"
# make /usr/bin/trackaudio available
binf="$pkgdir/usr/bin/$_pkgname"
if [[ ! -e "$binf" ]] && [[ ! -f "$binf" ]] && [[ ! -L "$binf" ]]; then
install -dm755 "$pkgdir/usr/bin"
ln -s /opt/TrackAudio/$_pkgname "$binf"
fi
}
|