blob: 5097edaca072ca2dd53bacdcc59063bccaeda59e (
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
|
# Maintainer: Cory Sanin <corysanin@outlook.com>
_pkgname=scorespy-launcher
pkgname=${_pkgname}
pkgdesc="Launcher for ScoreSpy CH, a modified Clone Hero client that submits scores to an online leaderboard."
pkgver=0.12.430
pkgrel=1
provides=('scorespy-launcher')
conflicts=('scorespy-launcher')
url="https://clonehero.scorespy.online/"
arch=("x86_64")
license=("freeware-proprietary")
_appimage="${_pkgname}_${pkgver}.AppImage"
source=("$_appimage"::"https://launcher.scorespy.online/dist/ScoreSpy%20Launcher-${pkgver}.AppImage")
sha1sums=('9e6ed46fba29fd373ff9a6515bdf30cbfce6690c')
noextract=("$_appimage")
options=(!strip)
prepare() {
chmod +x "$_appimage"
"./$_appimage" --appimage-extract
# Fix the desktop file
sed -i -E "s:Exec=AppRun:Exec=/opt/${_pkgname}/${_appimage}:" "squashfs-root/${_pkgname}.desktop"
}
package() {
# Appimage and symlink
install -Dpm755 "${_appimage}" "${pkgdir}/opt/${_pkgname}/${_appimage}"
install -dm755 "${pkgdir}/usr/bin"
ln -s "/opt/${_pkgname}/${_appimage}" "${pkgdir}/usr/bin/${_pkgname}"
# Desktop file
install -Dm644 "${srcdir}/squashfs-root/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
# Icons
install -dm755 "${pkgdir}/usr/share/pixmaps"
cp -r --no-preserve=mode,ownership "${srcdir}/squashfs-root/usr/share/icons/hicolor/0x0/apps/${_pkgname}.png" "${pkgdir}/usr/share/pixmaps/$_pkgname.png"
}
|