Last active
June 6, 2017 06:50
-
-
Save theclanks/2922769d422515755615 to your computer and use it in GitHub Desktop.
seafile client build
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
#!/usr/bin/env bash | |
yum install vala vala-compat wget gcc libevent-devel openssl-devel gtk2-devel libuuid-devel sqlite-devel jansson-devel intltool cmake qt-devel fuse-devel | |
echo "Building and installing seafile client" | |
export version=4.2.8 # change this to your preferred version | |
alias wget='wget --content-disposition -nc' | |
wget https://github.com/haiwen/libsearpc/archive/v3.0.2.tar.gz | |
wget https://github.com/haiwen/ccnet/archive/v${version}.tar.gz | |
wget https://github.com/haiwen/seafile/archive/v${version}.tar.gz | |
wget https://github.com/haiwen/seafile-client/archive/v${version}.tar.gz | |
tar xf libsearpc-3.0.2.tar.gz | |
tar xf ccnet-${version}.tar.gz | |
tar xf seafile-${version}.tar.gz | |
tar xf seafile-client-${version}.tar.gz | |
export PREFIX=/usr | |
export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH" | |
export PATH="$PREFIX/bin:$PATH" | |
echo "Building and installing libsearpc" | |
cd libsearpc-3.0.2 | |
./autogen.sh | |
./configure --prefix=$PREFIX | |
make | |
sudo make install | |
cd .. | |
echo "Building and installing ccnet" | |
cd ccnet-${version} | |
./autogen.sh | |
./configure --prefix=$PREFIX | |
make | |
sudo make install | |
cd .. | |
echo "Building and installing seafile" | |
cd seafile-${version}/ | |
./autogen.sh | |
./configure --prefix=$PREFIX --disable-gui | |
make | |
sudo make install | |
cd .. | |
echo "Building and installing seafile-client" | |
cd seafile-client-${version} | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX . | |
make | |
sudo make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment