summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 445bb4e6ddaba9803b5a38c2d5ffe2ae05df1de2 (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
# Maintainer: OMGeeky <fb@omgeeky.de>

pkgname="lumafly-git"
pkgver=3.2.0.0.r7.g0687288
pkgrel=1
pkgdesc="A cross platform mod manager for Hollow Knight Formerly known as Scarab+"
conflicts=('lumafly')
arch=("x86_64")
makedepends=('dotnet-sdk-7.0' 'git')
depends=('fontconfig' 'gcc-libs' 'glibc' 'dotnet-runtime-7.0')
license=("GPL3")
source=("git+https://github.com/TheMulhima/Lumafly.git")
url='https://themulhima.github.io/Lumafly/'

sha512sums=("SKIP")
options=('!strip')
pkgver() {
	cd "${srcdir}/Lumafly"
	git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
	cd "${srcdir}/Lumafly/Lumafly"
	dotnet publish --configuration Release --os linux --output "${srcdir}/publish"
}

package() {
	mkdir -p "$pkgdir"/usr/lib
	mkdir -p "$pkgdir"/usr/bin
	cp -dr --no-preserve='ownership' "${srcdir}/publish" "${pkgdir}/usr/lib/lumafly"

	ln -s /usr/lib/lumafly/Lumafly "${pkgdir}/usr/bin/lumafly"
}