Lines Matching refs:PKG_NAME
351 local PKG_NAME=$(basename $PKG_URL)
353 case $PKG_NAME in
355 PKG_BASENAME=${PKG_NAME%%.tar.bz2}
358 PKG_BASENAME=${PKG_NAME%%.tar.gz}
361 panic "Unknown archive type: $PKG_NAME"
364 if [ ! -f "$ARCHIVE_DIR/$PKG_NAME" ]; then
366 (cd $ARCHIVE_DIR && run curl -L -o "$PKG_NAME" "$PKG_URL")
370 MD5SUM=$(md5sum $ARCHIVE_DIR/$PKG_NAME | cut -d" " -f1)
375 case $PKG_NAME in
377 run tar xjf $ARCHIVE_DIR/$PKG_NAME -C $SRC_DIR
380 run tar xzf $ARCHIVE_DIR/$PKG_NAME -C $SRC_DIR
383 panic "Unknown archive type: $PKG_NAME"
386 fail_panic "Can't uncompress $ARCHIVE_DIR/$PKG_NAME"