blob: b4bdaa4feedcb9ccb24a35bbfc3e25d9bdf4c9c2 (
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=0.3.1
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
libsoup
openssl
pango
webkit2gtk
)
makedepends=(cargo nodejs npm)
optdepends=(
"hidapi: support for HID devices in-game"
"systemd-libs: udev services in-game"
)
conflicts=($pkgname-bin)
options=(!lto)
source=(
$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz
$pkgname.desktop
)
sha256sums=(
ecf2dc2956bf3232165bd3783c57a1b80b2be685f7a85e655b9bea8621508b33
d6cff5551389bbd5744179f169336c165ce1e9de65b34897c4ab5d40527a780e
)
prepare() {
cd YARC-Launcher-$pkgver/
# Disable bundle
sed -i '44s/true/false/' src-tauri/tauri.conf.json
}
build() {
cd YARC-Launcher-$pkgver/
npm install
npm run build
}
package() {
cd YARC-Launcher-$pkgver/
# 69-hid.rules
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/$pkgname -t $pkgdir/usr/bin/
# .desktop
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/
}
|