vlc: do not install precompiled lua scripts when cross compiling install uncompiled version instead

Closes: #11720 [via git-merge-pr]
This commit is contained in:
newbluemoon 2018-02-18 11:06:49 +01:00 committed by Jürgen Buchmüller
parent da1ab19e6d
commit f4805d1a11
1 changed files with 9 additions and 1 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'vlc'
pkgname=vlc
version=2.2.8
revision=7
revision=8
build_style=gnu-configure
configure_args="--disable-gme --disable-libtar --enable-jack
--disable-live555 --disable-fluidsynth --enable-dvdread
@ -79,6 +79,14 @@ pre_build() {
# at tree-vect-data-refs.c:2567
sed -i 's,-O4,-O2,g' -i modules/video_filter/Makefile
}
pre_install() {
if [ -n "$CROSS_BUILD" ]; then
# install .lua files instead of precompiled .luac ones
# scripts precompiled with 64 bit host compiler wont run on 32 bit target
# same with respect to endianess
sed -i -e "s/\(@list='\$(nobase_vlclib_DATA\)/\1:.luac=.lua/" share/Makefile
fi
}
post_install() {
# Remove unused stuff
rm -f ${DESTDIR}/usr/lib/vlc/plugins/plugins.dat