mirror of
https://github.com/libretro/Lakka.git
synced 2024-11-27 10:00:43 +00:00
scripts/unpack: add (initial) support to handle 'zip' archives
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
1d33adead4
commit
9a5a8c5917
@ -56,6 +56,10 @@ for i in $PKG_URL; do
|
||||
mkdir -p $3/$1
|
||||
7z x -o$3/$1 $f
|
||||
;;
|
||||
*.zip)
|
||||
mkdir -p $3/$1
|
||||
unzip -q $f -d $3/$1
|
||||
;;
|
||||
*.diff | *.patch)
|
||||
cat $f | patch -d $3 -p1
|
||||
;;
|
||||
|
@ -82,6 +82,7 @@ if [ -n "$PKG_URL" ]; then
|
||||
$SCRIPTS/extract $1 "$1*.txz" $BUILD
|
||||
$SCRIPTS/extract $1 "$1*.tgz" $BUILD
|
||||
$SCRIPTS/extract $1 "$1*.7z" $BUILD
|
||||
$SCRIPTS/extract $1 "$1*.zip" $BUILD
|
||||
fi
|
||||
|
||||
if [ -n "$PKG_SOURCE_DIR" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user