mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
scripts/unpack: use pkg_call
This commit is contained in:
parent
9959b29df9
commit
d0d28ee0a7
@ -53,13 +53,9 @@ if [ -d "$SOURCES/$1" -o -d "$PKG_DIR/sources" ]; then
|
|||||||
|
|
||||||
. $PKG_DIR/package.mk
|
. $PKG_DIR/package.mk
|
||||||
|
|
||||||
if [ "$(type -t pre_unpack)" = "function" ]; then
|
pkg_call_optional pre_unpack
|
||||||
pre_unpack
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$(type -t unpack)" = "function" ]; then
|
if ! pkg_call unpack; then
|
||||||
unpack
|
|
||||||
else
|
|
||||||
if [ -n "$PKG_URL" ]; then
|
if [ -n "$PKG_URL" ]; then
|
||||||
$SCRIPTS/extract $1 $BUILD
|
$SCRIPTS/extract $1 $BUILD
|
||||||
fi
|
fi
|
||||||
@ -82,14 +78,10 @@ if [ -d "$SOURCES/$1" -o -d "$PKG_DIR/sources" ]; then
|
|||||||
mkdir -p "${PKG_BUILD}"
|
mkdir -p "${PKG_BUILD}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(type -t post_unpack)" = "function" ]; then
|
pkg_call_optional post_unpack
|
||||||
post_unpack
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "${PKG_SKIP_PATCHES}" != "yes" ]; then
|
if [ "${PKG_SKIP_PATCHES}" != "yes" ]; then
|
||||||
if [ "$(type -t pre_patch)" = "function" ]; then
|
pkg_call_optional pre_patch
|
||||||
pre_patch
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
if [ "$TARGET_ARCH" = "x86_64" ]; then
|
||||||
PATCH_ARCH="x86"
|
PATCH_ARCH="x86"
|
||||||
@ -158,9 +150,7 @@ if [ -d "$SOURCES/$1" -o -d "$PKG_DIR/sources" ]; then
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$(type -t post_patch)" = "function" ]; then
|
pkg_call_optional post_patch
|
||||||
post_patch
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! "$PKG_NAME" = "configtools" ] ; then
|
if [ ! "$PKG_NAME" = "configtools" ] ; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user