|
| 1 | +# NOTES: |
| 2 | +## All variable values should be enclosed within double quotes: "<value>" |
| 3 | +## CONFIGURATION FILE for `gm2xpkg` script version: |
| 4 | +PKGVER="0.7" |
| 5 | + |
| 6 | +# EXEC commands (set to "1" anyone for desired outcome), you can instead use [OPTIONS] of `gm2xpkg`: |
| 7 | +PACKAGE="" |
| 8 | +ZIP="" |
| 9 | +IPK="" |
| 10 | +CLEAN="" |
| 11 | + |
| 12 | +# VERBOSE mode (insert "yes" to have more info) |
| 13 | +VERBOSE="" |
| 14 | + |
| 15 | +# ENV VAR. |
| 16 | +## Specific (mandatory to provide!) |
| 17 | +TARGET="race" # [filepath], replace with target's working binary path (<path>/<file_name>) |
| 18 | +VERSION="" # [string], replace with correct release version if exist of target binary |
| 19 | + |
| 20 | +## Generic - common to all apps (better to not modify) |
| 21 | +HOMEPATH="" # [dirpath], target device fullpath home directory for installation process |
| 22 | +RELEASEDIR="" # [dirpath], host package output directory, specified with [-p] option |
| 23 | +ASSETSDIR="" # [dirpath], host dir containg all the necessary assets for a target |
| 24 | +OPKG_ASSETSDIR="" # [dirpath], host dir containg the ./CONTROL directory with [control, preinst, postinst] files, auto-generated if not provided (warning: it may be removed with CLEAN=1) |
| 25 | +LINK="" # [filepath], host path to custom gm2x link, modify if you want to use your pre-edited *.lnk file (warning: it may be removed with CLEAN=1) |
| 26 | +ALIASES="" # [filepath], host path to *.txt file holding new names for selector e.g. old_title=new_title |
| 27 | +MANUAL="race-od.man.txt" # [filepath], host path to *.man.txt file holding usage description of target app |
| 28 | + |
| 29 | +## Link entries (better modify if no <target_name>.lnk file provided) |
| 30 | +### Primary |
| 31 | +TITLE="" # [string], program title |
| 32 | +DESCRI="" # [string], short description |
| 33 | +DESTDIR="" # [string], (default="apps") installation pathname in target device $HOMEPATH directory - not a link entry |
| 34 | +SECTION="" # [string], (default="applications") section in menu |
| 35 | +### Additional |
| 36 | +SELDIR="/mnt/roms/NGP/" # [dirpath], target device fullpath search directory (activates selector, don't append path with "/" to use AUTO selectorelement mode) |
| 37 | +SELBROWSER="" # [bool], (default="true") don't show directories in selector browser with "false" - aka "Show Folders" option |
| 38 | +SELFILTER=".ngp,.npc,.ngc" # [string], activates FileFilter in selector e.g. =".gba,.zip" |
| 39 | +SELSCREENS="" # [dirpath], target fullpath Boxarts' directory in selector |
| 40 | +ICON="" # [filepath], target fullpath to icon being used in menu (instead of default) |
| 41 | +BACKDROP="" # [filepath], target fullpath to backdrop being displayed under icon in menu (default="" thus OFF) |
| 42 | +PARAMS="" # [string], parameters (options; args) being passed to execution cmd |
| 43 | +### HW Specific |
| 44 | +CLOCK="" # [int], CPU frequency in MHz |
| 45 | +LAYOUT="" # [int], SDL Keyboard (face buttons) layout |
| 46 | +TEFIX="" # [int], Tearing FIX method |
| 47 | + |
| 48 | +## Custom entries (if needed then modify) |
| 49 | +TARGET_DIR="" # [dirpath], target device install directory $HOMEPATH/$DESTDIR/$TARGET_DIR of executable binary (default TARGET_DIR=$(basename $TARGET)) |
| 50 | +TARGET_EXEC="" # [string], the executable <file_name> that's being used by frontend when running an app from $TARGET_DIR, for e.g. may be a custom script (default TARGET_EXEC=$(basename $TARGET)) |
| 51 | +DOCS=("License.txt") # [array] of filepaths to extra text files e.g. =("docs/LICENSE" "CHANGELOG" "CONTRIBUTORS") which will be copied & converted to *.txt files for ease of use by frontend and placed in $TARGET_DIR |
| 52 | + |
| 53 | +## IPK control entries (if needed then modify) |
| 54 | +PKG="" # default=$TARGET - name of the opkg package |
| 55 | +PRIORITY="" |
| 56 | +MAINTAINER="" |
| 57 | +CONFFILES="" |
| 58 | +ARCH="" # default=arm - do not modify for ARM chips |
| 59 | +# CONTROL= # automated output of *.ipk control config file |
| 60 | +DEPENDS="" # list of dependency packages e.g. ="sdl, libpng" or ="sdl (>= 2.9.2), sdl_mixer (= ed76d39cda0735d26c14a3e4f4da996e420f6478)" provide only for shared libs build, otherwise ignored (run "readelf -d $TARGET | grep NEEDED" to bisect) |
| 61 | +SOURCE="" |
| 62 | +LICENSE="" |
0 commit comments