12345678910111213141516171819202122232425262728293031323334 |
- JGENAM=jg
- JGE_BRANCH=${JGE_BRANCH:-master}
- JGE_URL="https://gitlab.com/jgemu/$JGENAM.git"
- PKG="$HOME"/games/emu/jgemu
- JGE=${JGE:-"$GITSRC"}/jgemu/$JGENAM
- JGE_TMP="$TMP"/../$JGENAM
- SRC="$GITSRC"/jgemu/$PRGNAM
- TMP="$TMP"/jgemu/$PRGNAM
- _jgmake () {
- _makefile="$1"
- shift
- _make "$_jginstall" "$SRC/$_makefile" \
- "${@:-}" \
- CFLAGS_JG="-I$JGE/.." \
- PREFIX="$PKG" \
- DESTDIR="$DST"
- unset _makefile
- }
- if [ "${DEBUG:=0}" != 0 ]; then
- _jginstall='install'
- else
- _jginstall='install-strip'
- fi
- if [ "$PRGNAM" != "$JGENAM" ]; then
- _git "$JGE" "$JGENAM" "$JGE_URL" "$JGE_TMP" "$JGE_BRANCH" "${JGE_COMMIT:-}"
- _flags
- fi
- _git "$SRC" "$PRGNAM" "$URL" "$TMP" "$BRANCH" "${COMMIT:-}" ''
|