blob: 3048dd29191b23e6f87caa1942cc122cdfb54c2d (
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
73
|
# Maintainer: GANPI <some.kind@of.mail>
pkgname=yarc-launcher
pkgver=1.2.0
pkgrel=1
pkgdesc='The official launcher for YARG (a.k.a. Yet Another Launcher or YAL)'
arch=(x86_64)
url=https://github.com/YARC-Official/YARC-Launcher
license=('custom: YARG License')
depends=(
cairo
gdk-pixbuf2
glib2
gtk3
hicolor-icon-theme
libsoup3
openssl
webkit2gtk-4.1
)
makedepends=(cargo nodejs npm)
optdepends=(
'hidapi: support for HID devices (in-game)'
'pulseaudio-alsa: audio support (in-game)'
'systemd-libs: access to HID devices (in-game)'
)
conflicts=($pkgname-bin)
options=(!debug !lto)
source=(
$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz
$pkgname.desktop
)
sha256sums=(
47d2f528e99236506ec4e030d27cf05302a785a2dc7d198a2fa9538407b29555
9f1af65bb63ff67296aa41583d542850af1e146f9ede71818cb6a4bf3befb6c4
)
prepare() {
cd YARC-Launcher-$pkgver/
# Disable bundle
sed -i '9s/true/false/' src-tauri/tauri.conf.json5
}
build() {
cd YARC-Launcher-$pkgver/
npm install
npm run build
}
package() {
cd YARC-Launcher-$pkgver/
# udev rule (in-game)
install -dm755 $pkgdir/etc/udev/rules.d/
echo 'KERNEL=="hidraw*", TAG+="uaccess"' > $pkgdir/etc/udev/rules.d/69-hid.rules
# binary
install -Dm755 src-tauri/target/release/YARC\ Launcher $pkgdir/usr/bin/$pkgname
# desktop file
install -Dm644 $srcdir/$pkgname.desktop -t $pkgdir/usr/share/applications/
# icons
for _size in 32x32 128x128 128x128@2x; do
_iconpath=usr/share/icons/hicolor/$_size/apps/
install -Dm644 src-tauri/icons/$_size.png $pkgdir/$_iconpath/$pkgname.png
done
# LICENSE
install -Dm644 LICENSE -t $pkgdir/usr/share/licenses/$pkgname/
}
|