create_addon: use 7zip for addon.zip creation

This commit is contained in:
cvh 2017-08-18 11:31:49 +02:00
parent 32406a7410
commit 6b5ebac327
3 changed files with 11 additions and 2 deletions

View File

@ -30,10 +30,19 @@ PKG_SHORTDESC="p7zip is a port of 7za.exe for POSIX systems like Unix"
PKG_LONGDESC="p7zip is a port of 7za.exe for POSIX systems like Unix"
PKG_AUTORECONF="no"
make_host() {
make TARGET_CXX=$CXX TARGET_CC=$CC 7za
}
make_target() {
make TARGET_CXX=$CXX TARGET_CC=$CC 7z 7za
}
makeinstall_host() {
mkdir -p $TOOLCHAIN/bin
cp bin/7za $TOOLCHAIN/bin
}
makeinstall_target() {
: # nop
}

View File

@ -22,7 +22,7 @@ PKG_ARCH="any"
PKG_LICENSE="GPL"
PKG_SITE="https://libreelec.tv"
PKG_URL=""
PKG_DEPENDS_TARGET="configtools:host make:host xz:host sed:host pkg-config:host autoconf:host automake:host libtool:host intltool:host autoconf-archive:host gcc:host bison:host flex:host cmake:host xmlstarlet:host yasm:host"
PKG_DEPENDS_TARGET="configtools:host make:host xz:host sed:host pkg-config:host autoconf:host automake:host libtool:host intltool:host autoconf-archive:host gcc:host bison:host flex:host cmake:host xmlstarlet:host yasm:host p7zip:host"
PKG_SECTION="virtual"
PKG_SHORTDESC="toolchain: LibreELEC.tv' toolchain"
PKG_LONGDESC="a crosscompiling toolchain to compile all packages"

View File

@ -57,7 +57,7 @@ pack_addon() {
fi
cd $ADDON_BUILD
echo "*** compressing Addon $PKG_ADDON_ID ... ***"
zip -rq $PKG_ADDON_ID-$ADDONVER.zip $PKG_ADDON_ID;
$TOOLCHAIN/bin/7za a -l -mx9 -bsp0 -bso0 -tzip $PKG_ADDON_ID-$ADDONVER.zip $PKG_ADDON_ID
cd - &>/dev/null
mkdir -p $ADDON_INSTALL_DIR