blob: 158e30845f9d9d44da3c8d4a0e254993e5d1ec56 (
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
|
# Maintainer: griffin <19497824+WingofaGriffin@users.noreply.github.com>
pkgname=emudeck
pkgver=2.2.18
pkgrel=3
pkgdesc='An installation script that helps you get started with emulation.'
arch=('x86_64')
url="https://emudeck.com"
license=('GPL')
depends=('flatpak' 'rsync' 'unzip' 'jq' 'bash' 'curl' 'zenity' 'fuse2' 'git')
optdepends=('steam: Steam ROM Manager Support, Proton Support')
provides=('emudeck')
source=(launch-emudeck.sh)
sha512sums=('94fddc5a4fa578dbe2a2b1c9f331567079c6ed99950be1476fa8e6797cb0531c16abb5a9ad038d6153566ab23b592d83d07e715d919e3c6c1131b0dddc27fb04')
prepare() {
EMUDECK_GITHUB_URL="https://api.github.com/repos/EmuDeck/emudeck-electron/releases/latest"
EMUDECK_URL="$(curl -s ${EMUDECK_GITHUB_URL} | grep -E 'browser_download_url.*AppImage' | cut -d '"' -f 4)"
mkdir -p ~/Applications
curl -L "${EMUDECK_URL}" -o ~/Applications/EmuDeck.AppImage
chmod +x ~/Applications/EmuDeck.AppImage
}
pkgver() {
EMUDECK_GITHUB_URL="https://api.github.com/repos/EmuDeck/emudeck-electron/releases/latest"
emudeckVer=$(curl --silent ${EMUDECK_GITHUB_URL} | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/v//')
if [ -z "$emudeckVer" ]; then
emudeckVer=$pkgver
fi
echo $emudeckVer
}
package() {
install -Dm755 launch-emudeck.sh "$pkgdir/usr/bin/emudeck"
}
|