summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 261460a9d0c05cb31b02eb20b0ac9ce477f3dadd (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: Kookies <kookies@tutamail.com>
_name=wiiu-vc-extractor
_namecap=WiiuVcExtractor
pkgname=$_name-git
pkgver=r111.c78a740
pkgrel=1
pkgdesc="Extracts Wii U Virtual Console roms from dumps created via DDD or dumped from the SNES Mini"
arch=(x86_64)
url="https://github.com/wheatevo/$_name"
license=('GPL3')
depends=(dotnet-runtime)
makedepends=(git 'dotnet-runtime>=5' 'dotnet-sdk>=5')
optdepends=()
provides=($_name)
source=("git+$url")
md5sums=('SKIP')

pkgver() {
       cd "$_name"
       printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$_name"
	dotnet publish -c Release
	chmod 775 $_namecap/bin/Release/net5.0/publish
}

package() {
	rm "$pkgdir/usr/bin/$_namecap" 2&>/dev/null || true
	mkdir -p "$pkgdir/opt/$_namecap/"
	mkdir -p "$pkgdir/usr/bin/"
	cp -R $_name/$_namecap/bin/Release/net5.0/publish/* "$pkgdir/opt/$_namecap/"
	cd "$pkgdir/usr/bin/"
	ln -s "/opt/$_namecap/wiiuvcextractor"
}