Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Update AppImage scripts (add mandatory libresample)

parent cb443795
......@@ -32,7 +32,7 @@ fi
# libudev-devel libusbx-devel libcurl-devel libssh2-devel mesa-libGL-devel sqlite-devel #\
# tar gzip which make autoconf automake gstreamer-devel mesa-libEGL coreutils grep \
# media-player-info.noarch alsa-lib-devel polkit-devel sox-devel mesa-libGLU
#yum --enablerepo=epel -y install fuse-sshfs # install from EPEL
#if [[ "$(arch)" = "x86_64" ]] ; then
......@@ -113,7 +113,6 @@ yum -y install wget \
polkit-devel
# Newer compiler than what comes with offcial CentOS 6 (only 64 bits)
yum -y install centos-release-scl-rh
yum -y install devtoolset-3-gcc devtoolset-3-gcc-c++
......@@ -174,7 +173,7 @@ cmake3 --build . --config RelWithDebInfo --target ext_exiv2 -- -j$CPU_CORES
#necessary ?
#pulseaudio-libs
#pulseaudio-libs
# qjsonparser, used to add metadata to the plugins needs to work in a en_US.UTF-8 environment. That's
# not always set correctly in CentOS 6.7
......@@ -263,14 +262,14 @@ build_external $EXTERNAL
#sdl
cd /external
if ( test -d /external/SDL2-2.0.7 )
then
then
echo "SDL already downloaded"
else
wget http://libsdl.org/release/SDL2-2.0.7.tar.gz
tar -xf SDL2-2.0.7.tar.gz
fi
cd /external/SDL2-2.0.7
./configure --prefix=$WLD
./configure --prefix=$WLD
make
make install
......@@ -300,6 +299,10 @@ function build_framework
git checkout master
git reset --hard
git pull --rebase
elif [ "$FRAMEWORK" = "knotifications" ]; then
git checkout .
git checkout master
git checkout v5.40.0
else
git fetch --tags
git checkout v5.40.0
......
......@@ -12,7 +12,7 @@ grep -r "CentOS release 6" /etc/redhat-release || exit 1
. /opt/rh/devtoolset-3/enable
#necessary ?
#pulseaudio-libs
#pulseaudio-libs
QTVERSION=5.9.1
QVERSION_SHORT=5.9
......@@ -105,6 +105,35 @@ export PATH=$WLD/bin:$PATH
export ACLOCAL_PATH=$WLD/share/aclocal
export ACLOCAL="aclocal -I $ACLOCAL_PATH"
#libsndfile
cd /external
if ( test -d /external/libsndfile-1.0.28 )
then
echo "libsndfile already downloaded"
else
wget http://www.mega-nerd.com/libsndfile/files/libsndfile-1.0.28.tar.gz
tar -xf libsndfile-1.0.28.tar.gz
fi
cd libsndfile-1.0.28
./configure --prefix=$WLD
make -j5
make install
#libsamplerate
cd /external
if ( test -d /external/libsamplerate-0.1.9 )
then
echo "libsamplerate already downloaded"
else
wget http://www.mega-nerd.com/SRC/libsamplerate-0.1.9.tar.gz
tar -xf libsamplerate-0.1.9.tar.gz
fi
cd libsamplerate-0.1.9
./configure --prefix=$WLD
make -j5
make install
#libx264
cd /external
if ( test -d /external/x264 )
......@@ -122,14 +151,15 @@ else
git clone https://anonscm.debian.org/git/pkg-multimedia/x264.git
fi
cd x264
./configure --enable-static --enable-shared --prefix=$WLD
./configure --enable-static --enable-shared --prefix=$WLD
make -j5
make install
#libx265
cd /external
if ( test -d /external/x265 )
then
then
echo "libx265 already downloaded"
cd x265
if [ $# -eq 0 ]; then
......@@ -162,7 +192,7 @@ else
git clone https://anonscm.debian.org/git/pkg-multimedia/libvpx.git
fi
cd libvpx
./configure --enable-static --enable-shared --prefix=$WLD
./configure --enable-static --enable-shared --prefix=$WLD
make -j5
make install
......@@ -174,7 +204,8 @@ then
if [ $# -eq 0 ]; then
cd ffmpeg
git reset --hard
git pull --rebase
# git pull --rebase
git checkout debian/7%3.3.4-2
cd ..
fi
else
......@@ -193,7 +224,7 @@ make install
if ( test -d /external/cairo-1.14.10 )
then
then
echo "cairo already downloaded"
cd /external/cairo-1.14.10
else
......@@ -302,7 +333,7 @@ else
fi
#opencv
IN=opencv,https://github.com/opencv/opencv.git,true,""
IN=opencv,https://github.com/opencv/opencv.git,true,""
IFS=',' read -a external_options <<< $IN
EXTERNAL="${external_options[0]}"
EXTERNAL_ADDRESS="${external_options[1]}"
......@@ -332,7 +363,7 @@ make install
#vidstab
IN=vid.stab,https://github.com/georgmartius/vid.stab.git,true,""
IN=vid.stab,https://github.com/georgmartius/vid.stab.git,true,""
IFS=',' read -a external_options <<< $IN
EXTERNAL="${external_options[0]}"
EXTERNAL_ADDRESS="${external_options[1]}"
......
......@@ -182,6 +182,7 @@ if [ $# -eq 0 ]; then
git pull
git reset --hard
git pull --rebase
# git checkout d351ac1
cd ..
fi
else
......
......@@ -221,6 +221,8 @@ rm -rf usr/share/gettext || true
rm -rf usr/share/pkgconfig || true
rm -rf rm -rf ./usr/mkspecs/ || true
# Remove
strip -g $(find usr) || true
if [ ! -z "$(ls -A usr/lib/libexec/kf5)" ]; then
......@@ -258,7 +260,7 @@ export APPIMAGE_ORIGINAL_MLT_REPOSITORY=\$MLT_REPOSITORY
export APPIMAGE_ORIGINAL_MLT_DATA=\$MLT_DATA
export APPIMAGE_ORIGINAL_MLT_ROOT_DIR=\$MLT_ROOT_DIR
export APPIMAGE_ORIGINAL_MLT_PROFILES_PATH=\$MLT_PROFILES_PATH
export APPIMAGE_ORIGINAL_MLT_PRESETS_PATH=\$MLT_PRESTES_PATH
export APPIMAGE_ORIGINAL_MLT_PRESETS_PATH=\$MLT_PRESETS_PATH
export QML2_IMPORT_PATH=\$DIR/usr/lib/qt5/qml:\$QML2_IMPORT_PATH
......@@ -315,6 +317,18 @@ mkdir -p /$APP/$APP.AppDir
cd /$APP/
cp -R ../app/* $APP.AppDir/
# Remove useless stuff
rm -Rf $APP.AppDir/usr/share/wallpapers/ || true
rm -Rf $APP.AppDir/usr/share/kconf_update/ || true
rm -Rf $APP.AppDir/usr/share/gtk-2.0/ || true
rm -Rf $APP.AppDir/usr/share/gtk-doc/ || true
rm -Rf $APP.AppDir/usr/share/kf5/kdoctools/ || true
rm -Rf $APP.AppDir/usr/share/kservices5/searchproviders/ || true
rm -Rf $APP.AppDir/usr/share/kservices5/useragentstrings/ || true
rm -Rf $APP.AppDir/usr/share/man/ || true
rm -Rf $APP.AppDir/usr/bin/ffserver || true
rm -Rf $APP.AppDir/usr/bin/gtk-demo || true
rm -Rf $APP.AppDir/usr/lib/kconf_update_bin/ || true
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment