mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
build: don't wipe devel files from packages, just don't install them
With the upcoming usage of the standard install_pkg folder for addon dependencies, the devel files need to be accessible, e.g. ffmpegx for tvheadend. So don't wipe them from the package install folder, just skip copying them to the image.
This commit is contained in:
@@ -445,24 +445,17 @@ export SYSROOT_PREFIX="${PKG_ORIG_SYSROOT_PREFIX}"
|
||||
|
||||
if [ "${TARGET}" = "target" -o "${TARGET}" = "init" ]; then
|
||||
if [ -d ${INSTALL} ]; then
|
||||
rm -rf ${INSTALL}/{usr/,}include
|
||||
rm -rf ${INSTALL}/{usr/,}lib/cmake
|
||||
rm -rf ${INSTALL}/{usr/,}lib/pkgconfig
|
||||
rm -rf ${INSTALL}/{usr/,}man
|
||||
rm -rf ${INSTALL}/{usr/,}share/aclocal
|
||||
rm -rf ${INSTALL}/{usr/,}share/bash-completion
|
||||
rm -rf ${INSTALL}/{usr/,}share/doc
|
||||
rm -rf ${INSTALL}/{usr/,}share/gtk-doc
|
||||
rm -rf ${INSTALL}/{usr/,}share/info
|
||||
rm -rf ${INSTALL}/{usr/,}share/locale
|
||||
rm -rf ${INSTALL}/{usr/,}share/man
|
||||
rm -rf ${INSTALL}/{usr/,}share/pkgconfig
|
||||
rm -rf ${INSTALL}/{usr/,}share/zsh
|
||||
rm -rf ${INSTALL}/{usr/,}var
|
||||
find ${INSTALL} \( -name "*.orig" \
|
||||
-o -name "*.rej" \
|
||||
-o -name "*.a" \
|
||||
-o -name "*.la" \
|
||||
-o -name "*.o" \
|
||||
-o -name "*.in" \
|
||||
-o -name ".git*" \) \
|
||||
|
||||
@@ -138,7 +138,22 @@ if [ "${TARGET}" = "target" ] ; then
|
||||
fi
|
||||
|
||||
if [ -n "${PKG_INSTALL}" -a -d "${PKG_INSTALL}" ]; then
|
||||
cp -PR ${PKG_INSTALL}/* ${INSTALL}
|
||||
tar \
|
||||
-C "${PKG_INSTALL}" \
|
||||
--exclude=./usr/include \
|
||||
--exclude=./usr/lib/cmake \
|
||||
--exclude=./usr/lib/pkgconfig \
|
||||
--exclude=./usr/share/aclocal \
|
||||
--exclude=./usr/share/pkgconfig \
|
||||
--exclude=./include \
|
||||
--exclude=./lib/cmake \
|
||||
--exclude=./lib/pkgconfig \
|
||||
--exclude=./share/aclocal \
|
||||
--exclude=./share/pkgconfig \
|
||||
--exclude=./.* \
|
||||
--exclude='*.a' \
|
||||
--exclude='*.la' \
|
||||
-cf - . | tar -C "${INSTALL}" -xf -
|
||||
fi
|
||||
|
||||
if [ "${TARGET}" = "target" ] ; then
|
||||
|
||||
Reference in New Issue
Block a user