libpack.sh 447 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. . common
  3. PKG="open2x-libpack"
  4. MARKER="$BASEDIR/.${PKG}_installed"
  5. if [ -e "$MARKER" ]; then
  6. echo "$PKG seems to be already build, remove $MARKER to rebuild"
  7. exit 0
  8. fi
  9. FILE="open2x-libpack-20071903-gcc-4.1.1-glibc-2.3.6.tar.bz2"
  10. URL="http://www.open2x.org/open2x/toolchains/$FILE.zip"
  11. DOWNLOADED="$DOWNLOAD_DIR/$FILE"
  12. download "$URL" "$DOWNLOADED"
  13. execute pushd "$PREFIX"
  14. execute tar -xf "$DOWNLOADED"
  15. execute popd
  16. touch "$MARKER"