summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bb20f5288aba6dafb0d6f4d0c4dfed3d1ff3f9ed (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: Noa <coolreader18@gmail.com>
pkgname=celeste64-fuji
pkgver=0.7.1
pkgrel=2
pkgdesc="A free and open source mod loader for Celeste 64: Fragments of the Mountain"
arch=(x86_64 aarch64)
url="https://fujiapi.github.io"
license=('custom:celeste64-fuji')
depends=(dotnet-runtime)
makedepends=(dotnet-sdk)
options=('!strip' '!debug')
source=(Fuji-$pkgver.tar.gz::"https://github.com/FujiAPI/Fuji/archive/refs/tags/$pkgver.tar.gz"
	'fuji.desktop')
noextract=()
sha256sums=('3f37c2997e75d6a07cb3267e220aac4f6925a8bdf83773dba4ebceeab777a5dd'
            '35ffe246db00f9a6e54d50eb7e37d637ac2107413e88f2fe12d27c64ef1830dd')

prepare() {
	cd "Fuji-$pkgver"
	dotnet restore
}

build() {
	cd "Fuji-$pkgver"
	dotnet build Celeste64.Launcher/Celeste64.Launcher.csproj -c Release --ucr
	awk '/License/{license=1} !$0{license=0} license' README.md >License.txt
}

package() {
	cd "Fuji-$pkgver"
	dotnet publish Celeste64.Launcher/Celeste64.Launcher.csproj -c Release --ucr --no-build -o "$pkgdir"/opt/fuji
	cp -r Content Mods fuji.png "$pkgdir"/opt/fuji
	install -Dm 644 "$srcdir"/fuji.desktop -t "$pkgdir"/usr/share/applications
	install -Dm 644 License.txt -t "$pkgdir"/usr/share/licenses/fuji
	install -Dm 644 Source/License.txt "$pkgdir"/usr/share/licenses/fuji/SourceLicense.txt
}