Created
August 24, 2018 14:20
-
-
Save baixiangcpp/7e10afee74e25c0bc738ad2e8d1f3d4a to your computer and use it in GitHub Desktop.
Seafile client cross compile environment
This file contains 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
echo "Install dependent library ..." | |
libs=(sed git mingw32-curl intltool vala libtool automake make cmake \ | |
mingw32-qt5-qtbase-devel mingw32-qt5-qttools-tools mingw32-pkg-config \ | |
unzip libuuid-devel libcurl-devel openssl-devel qt5-qtbase-devel \ | |
make qt5-qttools-devel doxygen wget sqlite-devel mingw32-qt5-qttools \ | |
mingw32-qt5-qmake) | |
sudo dnf install ${libs[@]} -y | |
echo "Download source code ..." | |
shopt -s expand_aliases | |
export version=6.2.4 | |
alias wget='wget --content-disposition -nc' | |
wget http://oss.ilovecpp.com/cdn/libsearpc-3.1-latest.zip | |
wget http://oss.ilovecpp.com/cdn/seafile-${version}.zip | |
wget http://oss.ilovecpp.com/cdn/seafile-client-${version}.zip | |
wget http://oss.ilovecpp.com/cdn/jansson-2.11.tar.gz | |
wget http://oss.ilovecpp.com/cdn/libevent-2.1.8-stable.tar.gz | |
echo "Decompress source code ..." | |
unzip libsearpc-3.1-latest.zip | |
rm libsearpc-3.1-latest.zip | |
unzip seafile-${version}.zip | |
rm seafile-${version}.zip | |
unzip seafile-client-${version}.zip | |
rm seafile-client-${version}.zip | |
tar xf jansson-2.11.tar.gz | |
rm jansson-2.11.tar.gz | |
tar xf libevent-2.1.8-stable.tar.gz | |
rm libevent-2.1.8-stable.tar.gz | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment