blob: 9e390268ce3ac836302d42c1665b55d9c22b7540 (
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
|
# Maintainer: bemxio <bemxiov at protonmail dot com>
pkgname="mupen64-rr-lua-bin"
pkgdesc="N64 TASing emulator with Lua scripting support"
pkgver=1.1.8
pkgrel=1
arch=(any)
url="https://github.com/mkdasher/mupen64-rr-lua-"
license=("GPL-2.0-only")
depends=(wine)
makedepends=(gendesk icoutils)
provides=(mupen64-rr-lua)
source=(
"Mupen64-RR_Repack21.7z::https://repack.skazzy3.com"
"https://raw.githubusercontent.com/mkdasher/mupen64-rr-lua-/${pkgver}/winproject/mupen64.ico"
"mupen64-rr-lua"
)
md5sums=("50f0881a9f48865ea2781fe4091d01b8" "a22a06af7e7b9a325b18445f0154d74a" "SKIP")
prepare() {
# extract the icon out of the .ico file
icotool -x -i 4 mupen64.ico -o logo.png
# generate a .desktop file
gendesk -f -n \
--pkgname Mupen64-rr-lua \
--pkgdesc "${pkgdesc}" \
--exec mupen64-rr-lua \
--icon mupen64-rr-lua.png \
--categories "Game;Emulator"
}
package() {
# move into the source directory
cd "Mupen64-RR Repack"
# copy all files to the package directory
find . -type d -exec install -Dm775 -ggames -d "${pkgdir}/opt/mupen64-rr-lua/{}" \;
find . -type f -exec install -Dm664 -ggames "{}" "${pkgdir}/opt/mupen64-rr-lua/{}" \;
# copy the executable script
install -Dm755 ../mupen64-rr-lua "${pkgdir}/usr/bin/mupen64-rr-lua"
# copy the icon and the .desktop file
install -Dm644 ../logo.png "${pkgdir}/usr/share/pixmaps/mupen64-rr-lua.png"
install -Dm644 ../Mupen64-rr-lua.desktop "${pkgdir}/usr/share/applications/mupen64-rr-lua.desktop"
}
|