Skip to content

Instantly share code, notes, and snippets.

@theclanks
Last active June 6, 2017 06:50
Show Gist options
  • Save theclanks/2922769d422515755615 to your computer and use it in GitHub Desktop.
Save theclanks/2922769d422515755615 to your computer and use it in GitHub Desktop.
seafile client build
#!/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