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

pkgname=slippi-online-appimage
pkgver=3.1.0
pkgrel=1
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')
source=('launch_script.sh')
sha1sums=('afcaa99c1e8a3c6c55a2e9666d8baf7dd4dd21f8')

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/lib/slippi-online/slippi-online"
  install -Dm755 launch_script.sh "$pkgdir/usr/bin/slippi-online"
}