blob: ca1d87f48192eba6c2a2afbc6bec53c564318d1a (
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
|
# Maintainer: Hekuran https://github.com/narukeh
pkgname=sm64pc-git
pkgver=r118.0ec63e4
pkgrel=1
pkgdesc='Super Mario 64-PC - OpenGL adaptation of n64decomp/sm64'
arch=('any')
url='https://github.com/sm64pc/sm64pc'
license=('MIT')
depends=('python' 'audiofile' 'sdl2' 'glew')
provides=(sm64pc)
_gitname=sm64pc
_region=us
source=('git+https://github.com/sm64pc/sm64pc.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_gitname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_gitname"
cp "../../baserom.${_region}.z64" . || {
printf "%$(stty size | awk '{print $2}')s\n" | sed "s/ /░/g"
printf "\\n%s\\n%s\\n\\n" \
"NO ROM FOUND! Copy your sm64 ROM to \"$(realpath ../../)\" and rename it to \"baserom.${_region}.z64\"." \
"The default ROM region is US. You have to edit the PKGBUILD if you would like to use a JP or EU version."
printf "%$(stty size | awk '{print $2}')s\n" | sed "s/ /░/g"
}
}
build() {
cd "$srcdir/$_gitname"
make VERSION=$_region BETTERCAMERA=1 ${MAKEFLAGS:--j$(nproc)}
}
package() {
install -Dm755 "$srcdir/../sm64pc-xdg" "${pkgdir}/usr/bin/sm64pc"
install -Dm755 "$srcdir/$_gitname/build/${_region}_pc/sm64.${_region}".* "${pkgdir}/usr/bin/sm64pc.bin"
}
|