summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c5a260a26dde5790de374d105b4291b20b6dfcbe (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
# Maintainer: klanc <lewis at ledgedash dot com>

pkgname=slippi-online-appimage
pkgver=2.2.6
pkgrel=0
pkgdesc='Slippi fork of Faster Melee, which allows you to play rollback netplay on Super Smash Bros Melee, (automatically gets latest version)'
arch=('x86_64')
url='https://slippi.gg/'
license=('GPL2')
provides=('slippi-online')
depends=(
	'alsa-lib' 'bluez-libs' 'enet' 'hidapi' 'libevdev' 'libgl' 'libpng'
	'libpulse' 'libx11' 'libxi' 'libxrandr' 'lzo' 'mbedtls' 'pugixml' 'qt5-base'
	'sfml' 'zlib' 'fuse2'
)
makedepends=('wget')
optdepends=('pulseaudio: PulseAudio backend')
options=('!strip')

prepare() {
  slippiver=$(curl --silent "https://api.github.com/repos/project-slippi/Ishiiruka/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/v//')
  if [ -z "$slippiver" ]; then
    slippiver=$pkgver
  fi
  wget "https://github.com/project-slippi/Ishiiruka/releases/download/v$slippiver/Slippi_Online-x86_64.AppImage" -O Slippi_Online-x86_64.AppImage
}

pkgver() {
  slippiver=$(curl --silent "https://api.github.com/repos/project-slippi/Ishiiruka/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/v//')
  if [ -z "$slippiver" ]; then
    slippiver=$pkgver
  fi
  echo $slippiver
}

package() {
  install -Dm755 Slippi_Online-x86_64.AppImage "$pkgdir/usr/bin/slippi-online"
}