Created
May 16, 2018 17:49
-
-
Save darealshinji/5f1358b37a74774ebd52aec237e2822b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # tested on Ubuntu 16.04 | |
| set -x | |
| set -e | |
| APP="mkvtoolnix-gui" | |
| VERSION="23.0.0" | |
| jobs="6" | |
| qtversion="5.10.1" | |
| wget -q -c https://mkvtoolnix.download/sources/mkvtoolnix-${VERSION}.tar.xz | |
| rm -rf mkvtoolnix-$VERSION | |
| tar xf mkvtoolnix-${VERSION}.tar.xz | |
| cd mkvtoolnix-$VERSION | |
| ./configure --prefix=/usr --enable-appimage --enable-optimization | |
| rake -j$jobs | |
| rake install DESTDIR="$PWD/appimage/${APP}.AppDir" | |
| cd appimage | |
| wget -q https://raw.githubusercontent.com/AppImage/AppImages/master/functions.sh | |
| . ./functions.sh | |
| cd ${APP}.AppDir/usr | |
| strip ./bin/* | |
| # Qt libs from www.qt.io online installer | |
| export LD_LIBRARY_PATH="$HOME/Qt/$qtversion/gcc_64/lib:$LD_LIBRARY_PATH" | |
| copy_deps | |
| mkdir libs | |
| mv ./home libs | |
| mv ./lib libs | |
| mv ./usr libs | |
| mkdir lib | |
| mv `find libs -type f` lib | |
| rm -rf libs | |
| # dlopen()ed by libQt5Network | |
| cp -f /lib/x86_64-linux-gnu/libssl.so.1.0.0 lib | |
| cp -f /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 lib | |
| delete_blacklisted | |
| mkdir ./share/file | |
| cp /usr/share/file/magic.mgc ./share/file | |
| cd .. | |
| cp ./usr/share/applications/org.bunkus.mkvtoolnix-gui.desktop mkvtoolnix-gui.desktop | |
| fix_desktop mkvtoolnix-gui.desktop | |
| cp ./usr/share/icons/hicolor/256x256/apps/mkvtoolnix-gui.png . | |
| get_apprun | |
| cd .. | |
| generate_type2_appimage | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment