env.jgemu 701 B

12345678910111213141516171819202122232425262728293031323334
  1. JGENAM=jg
  2. JGE_BRANCH=${JGE_BRANCH:-master}
  3. JGE_URL="https://gitlab.com/jgemu/$JGENAM.git"
  4. PKG="$HOME"/games/emu/jgemu
  5. JGE=${JGE:-"$GITSRC"}/jgemu/$JGENAM
  6. JGE_TMP="$TMP"/../$JGENAM
  7. SRC="$GITSRC"/jgemu/$PRGNAM
  8. TMP="$TMP"/jgemu/$PRGNAM
  9. _jgmake () {
  10. _makefile="$1"
  11. shift
  12. _make "$_jginstall" "$SRC/$_makefile" \
  13. "${@:-}" \
  14. CFLAGS_JG="-I$JGE/.." \
  15. PREFIX="$PKG" \
  16. DESTDIR="$DST"
  17. unset _makefile
  18. }
  19. if [ "${DEBUG:=0}" != 0 ]; then
  20. _jginstall='install'
  21. else
  22. _jginstall='install-strip'
  23. fi
  24. if [ "$PRGNAM" != "$JGENAM" ]; then
  25. _git "$JGE" "$JGENAM" "$JGE_URL" "$JGE_TMP" "$JGE_BRANCH" "${JGE_COMMIT:-}"
  26. _flags
  27. fi
  28. _git "$SRC" "$PRGNAM" "$URL" "$TMP" "$BRANCH" "${COMMIT:-}" ''