blob: 87f473b8debafa61e013f4a538d6b4a60934eeb8 (
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
|
# Maintainer: TheTrueColonel <benjaminesims@gmail.com>
# Previous Maintainer: NicKoehler <grillinicolavocal at gmail dot com>
pkgname=yarg
pkgver=0.12.6
pkgrel=1
pkgdesc="YARG - Yet Another Rhythm Game inspired off of Rockband, Guitar Hero, Clone Hero, or similar."
arch=("x86_64")
url="https://github.com/YARC-Official/YARG"
install=$pkgname.install
license=('LGPL-3.0-only')
depends=("hidapi" "systemd-libs" "alsa-lib" "gtk3" "glib2")
source=(
"$pkgname"
"$pkgname.desktop"
"YARG_${pkgver}.zip::https://github.com/YARC-Official/YARG/releases/download/v${pkgver}/YARG_v${pkgver}-Linux-x86_64.zip"
"https://raw.githubusercontent.com/YARC-Official/YARG/master/LICENSE"
)
sha256sums=('b0d35e17a3100e8c423f4b00c591b7cc9f35f1629bf3c29322db478ad0507005'
'56b58195f481e1a2e0ccf6bf5ff84f4a81bcf5befbb38a72e47b2b4c4652dcab'
'99fde0cf6313db05204c19067f04e21c1d280c86ff8767a9d047004ce701649e'
'a5681bf9b05db14d86776930017c647ad9e6e56ff6bbcfdf21e5848288dfaf1b')
package() {
# create dirs
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/etc/udev/rules.d"
install -dm777 "$pkgdir/opt/$pkgname"
# install binaries
install -Dm777 "$pkgname" "$pkgdir/usr/bin/$pkgname"
install -Dm777 "$srcdir/UnityPlayer.so" "$pkgdir/opt/$pkgname/"
install -Dm777 "$srcdir/YARG" "$pkgdir/opt/$pkgname/YARG"
cp -r "$srcdir/YARG_Data" "$pkgdir/opt/$pkgname/YARG_Data"
# install icon and .desktop
install -Dm644 "$pkgdir/opt/$pkgname/YARG_Data/Resources/UnityPlayer.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
install -Dm644 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
# install license
install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# create 69-hid.rules
echo 'KERNEL=="hidraw*", TAG+="uaccess"' > "$pkgdir/etc/udev/rules.d/69-hid.rules"
}
|