blob: a8cd4c555dea5304c44cadb70f524a7bcd537769 (
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
|
# shellcheck shell=bash disable=SC2034 disable=SC2154
# Maintainer: Lucas Melo <luluco250 at gmail dot com>
pkgname=clonehero-ptb
pkgver=v1.1.0.4990
pkgrel=0
pkgdesc=\
'Clone Hero is a free rhythm game, which can be played with any 5 or 6 button '\
'guitar controller, game controllers, or just your standard computer keyboard.'
arch=('x86_64')
url='https://clonehero.net/'
license=('freeware-proprietary')
depends=('gtk2' 'opengl-driver' 'sdl2')
optdepends=(
'discord: Discord rich presence support'
'vulkan-driver: Vulkan graphics mode'
'pulseaudio-alsa: Sound output via PulseAudio'
'pipewire-alsa: Sound output via PipeWire'
)
conflicts=('clonehero')
source=(
"clonehero-linux_$pkgver.tar.xz::https://github.com/clonehero-game/releases/releases/download/$pkgver-PTB/clonehero-linux.tar.xz"
'clonehero.desktop'
'clonehero.install'
'clonehero'
)
sha256sums=(
'f496ac977c397fd1c4a1e2135e970caab6404474024b5601371a06f2f23c8857'
'6d6d3e8e08ba65fedcc07a2d4ef8d5f6eabd4aec20dbc7e0febc6d58faff72bf'
'ed18ad9cc13b7a4b9b15a68ed9d2e0cb0a689bb85fecc33307b1c6da3ef1bbc0'
'e152f18dc38f47c0b0c52ff4227c7daa2fa5251fdf7f86683df1cd8274b24cb6'
)
install=clonehero.install
# Stripping causes crashes/softlocks at runtime, with the error log complaining
# about corrupted files, so we'll disable it entirely.
options=(!strip)
package() {
install -Dm644 clonehero.desktop "$pkgdir/usr/share/applications/clonehero.desktop"
install -Dm755 clonehero "$pkgdir/usr/bin/clonehero"
cd "$srcdir/clonehero-linux" || exit 1
find . -type f -exec install -Dm644 '{}' "$pkgdir/opt/clonehero/{}" \;
chmod +x "$pkgdir/opt/clonehero/clonehero"
install -Dm644 'clonehero_Data/Resources/UnityPlayer.png' "$pkgdir/usr/share/pixmaps/clonehero.png"
# Workaround for a bug where CloneHero v1.1.0.4990 tries to write to a Logs
# folder in its own installation directory.
mkdir -p "$pkgdir/opt/clonehero/Logs"
chmod 1777 "$pkgdir/opt/clonehero/Logs"
}
|