summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: feca3da8066949d2166155eb3542530692b96f4a (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: Eli Štefků "Octelly" <eli@stefek.cz>

pkgname=heaven-studio-nightly-bin
provides=("heaven-studio")
_pkgname=heaven-studio
pkgver=6241434638
# note: Couldn't find a proper versioning system for this project
pkgrel=7
pkgdesc="Fully playable, open source recreation of every Rhythm Heaven minigame with a built in level editor."
arch=('x86_64')
url="https://github.com/RHeavenStudio/HeavenStudio"
license=('GPL3')
source=(
	"https://nightly.link/RHeavenStudio/HeavenStudio/actions/runs/${pkgver}/StandaloneLinux64-build.zip"
	'heaven-studio.desktop'
)
noextract=("StandaloneLinux64-build.zip")
sha512sums=(
	'SKIP'
	'SKIP'
)
makedepends=('unzip' 'tar')

prepare() {
 unzip StandaloneLinux64-build.zip
 rm StandaloneLinux64-build.zip
 tar -xvf StandaloneLinux64.tar
 rm StandaloneLinux64.tar
}

package() {
  cd build/StandaloneLinux64
  find . -type f -exec install -v -Dm 755 "{}" "$pkgdir/opt/$_pkgname/{}" \;

  mkdir -p $pkgdir/usr/share/icons/hicolor/128x128/apps
  ln -sf /opt/heaven-studio/Heaven\ Studio_Data/Resources/UnityPlayer.png $pkgdir/usr/share/icons/hicolor/128x128/apps/heaven-studio.png

  mkdir -p $pkgdir/usr/share/applications
  cd ../..
  install -Dm 755 "heaven-studio.desktop" $pkgdir/usr/share/applications
}