blob: 79ffccc01709399e75d138f5882454b549f29726 (
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
48
49
50
51
52
53
54
55
56
|
# Maintainer: Harrison <htv04rules at gmail dot com>
_pkgbase=sm64ex
_sm64ver=eu
_pkgname=${_pkgbase}-${_sm64ver}
pkgname=${_pkgname}-git
pkgver=r626.db9a6345
pkgrel=1
pkgdesc="Fork of Super Mario 64 Port (${_sm64ver^^}) with additional features"
arch=("x86_64" "i686" "pentium4" "arm" "armv6h" "armv7h" "aarch64")
url="https://github.com/sm64pc/${_pkgbase}"
license=("unknown")
depends=("sdl2")
makedepends=("python")
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("git+${url}"
"file://baserom.${_sm64ver}.z64"
"${_pkgname}.sh"
"${_pkgname}.desktop")
sha256sums=("SKIP"
"c792e5ebcba34c8d98c0c44cf29747c8ee67e7b907fcc77887f9ff2523f80572"
"13de16a1625b89f509dbef76dd27606d231a54d80b47bb80147b065bfec295a4"
"c8123df8a7be69c32dcd339a939f67861fde55e80df0e45095f935419850b3d6")
pkgver() {
cd "${srcdir}/${_pkgbase}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "${srcdir}"
cp baserom.${_sm64ver}.z64 "${srcdir}/${_pkgbase}"
}
build() {
cd "${srcdir}/${_pkgbase}"
# Reference: https://github.com/sm64pc/sm64ex/wiki/Build-options
make VERSION=${_sm64ver}
}
package() {
cd "${srcdir}"
# Install binary and launcher
install -Dm0755 ${_pkgbase}/build/${_sm64ver}_pc/sm64.${_sm64ver}.f3dex2e "${pkgdir}/usr/share/${_pkgname}/${_pkgname}"
install -Dm0755 ${_pkgname}.sh "${pkgdir}/usr/bin/${_pkgname}"
# Install desktop entry
install -Dm0644 ${_pkgbase}/textures/segment2/segment2.05A00.rgba16.png "${pkgdir}/usr/share/icons/hicolor/16x16/apps/${_pkgname}.png" # Use extracted Mario head texture as desktop icon
install -Dm0644 ${_pkgname}.desktop "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
}
|