File tree Expand file tree Collapse file tree 8 files changed +78
-0
lines changed Expand file tree Collapse file tree 8 files changed +78
-0
lines changed Original file line number Diff line number Diff line change 1+ pkgname=mame-essentials
2+ pkgver=1.0
3+ pkgrel=0
4+ pkgdesc=" MAME Essentials MSYS2 package"
5+ arch=(' x86_64' )
6+ depends=(' make' ' wget' ' git' ' p7zip' ' mingw-w64-x86_64-gcc' ' mingw-w64-x86_64-python' ' mingw-w64-i686-gcc' ' mingw-w64-i686-python' )
7+ url=" https://github.com/mamedev/buildtools/"
8+ license=(' none' )
9+ options=(' !strip' )
10+ package () {
11+ cp -R " $srcdir /." " $pkgdir /."
12+ }
Original file line number Diff line number Diff line change 1+ # MAME Essentials package
2+
3+ Build with:
4+
5+ ```
6+ makepkg -f -d
7+ ```
8+
9+ options:
10+ f - is for force (to recreate if package file already exits)
11+ d - no dependency check (so no need to have deps already preinstalled)
12+
13+
14+ To use:
15+
16+ ```
17+ pacman -U mame-essentials-1.0-0-x86_64.pkg.tar.zst
18+ ```
19+
20+ Will install this package and all dependencies needed for user to have installed to be able to compile MAME.
21+ This can be installed on vanilla MSYS2 installation.
22+
Original file line number Diff line number Diff line change 1+ gl=git log --oneline --all --graph --decorate $*
2+ ls=ls --color $*
3+ pwd=cd
4+ clear=cls
Original file line number Diff line number Diff line change 1+ @ set CONFIG_ARCHITECTURE = x86
2+ @ env.bat
Original file line number Diff line number Diff line change 1+ @ set CONFIG_ARCHITECTURE = x64
2+ @ env.bat
Original file line number Diff line number Diff line change 1+ :: Find root dir
2+ @ if not defined MSYS2_ROOT (
3+ for /f %%i in (" %~dp0 \..\.." ) do @ set MSYS2_ROOT = %%~fi
4+ )
5+
6+ :: Add aliases
7+ @ doskey /macrofile=" %MSYS2_ROOT% \opt\mamedev\aliases"
8+
9+ @ set MINGW32 =
10+ @ set MINGW64 =
11+ @ set ADD_PATH =
12+ @ set PATH = %windir% \System32;%windir%
13+ :: Enhance Path
14+ @ if " %CONFIG_ARCHITECTURE% " == " x86" (
15+ @ set MINGW32 = /mingw32
16+ @ set PYTHON_EXECUTABLE = /mingw32/bin/python.exe
17+ @ set MINGW = %MSYS2_ROOT% \mingw32
18+ @ set prompt = [MINGW32] $p$g
19+ ) else (
20+ @ set MINGW64 = /mingw64
21+ @ set PYTHON_EXECUTABLE = /mingw64/bin/python.exe
22+ @ set MINGW = %MSYS2_ROOT% \mingw64
23+ @ set prompt = [MINGW64] $p$g
24+ )
25+ @ set MINGW_PATH = %MINGW% \bin
26+
27+ @ set PATH = %ADD_PATH% ;%MSYS2_ROOT% \opt\mamedev;%MINGW_PATH% ;%MSYS2_ROOT% \usr\bin;%PATH%
28+
29+ @ if not exist " %MSYS2_ROOT% \home" (
30+ @ bash --login /dev/null
31+ )
Original file line number Diff line number Diff line change 1+ @ if not exist src (
2+ mkdir src
3+ )
4+ @ cd src
5+ @ cmd /k ..\opt\mamedev\env.bat
You can’t perform that action at this time.
0 commit comments