blob: 965f6ef690b3c93eee37bd0319354516b0717307 (
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
42
43
44
45
46
47
|
# Maintainer: CrankySupertoon <crankysupertoon@gmail.com.com>
pkgname=gamemaker-studio-decompiler-git
_pkgname=AltarNET
pkgver=v1.0.beta.with.bugfixes.r2.g7d2b606
pkgrel=1
pkgdesc='GameMaker: Studio data.win unpacker and decompiler non-YYC, specifically made for Undertale, based on libaltar and Mirrawrs data site'
arch=('x86_64')
makedepends=('clang' 'git')
depends=('mono' 'sdl2')
url='https://github.com/jeason1997/GameMaker-Studio-Decompiler'
conflicts=('gamemaker-studio-decompiler')
license=('DBAD')
source=("${_pkgname}::git+https://github.com/jeason1997/GameMaker-Studio-Decompiler")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/${_pkgname}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "${srcdir}/${_pkgname}"
# Invoke using mono in a wrapper, since wine (if installed) would open it otherwise
cat > "${pkgname}" <<-EOT
#!/bin/sh
/usr/bin/mono /opt/${_pkgname}/${_pkgname} "\$@"
EOT
}
build() {
cd "${srcdir}/${_pkgname}"
msbuild /m Altar.NET.sln /p:Configuration=Release
}
package() {
cd "${srcdir}/${_pkgname}"
#Link the mono wrapper to the bin folder
install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/gamemaker-decompiler"
#Copy the main executable for the mono wrapper to read
cd "${srcdir}/${_pkgname}/bin/Release"
install -Dm755 "altar.exe" "${pkgdir}/opt/${_pkgname}/${_pkgname}"
}
|