-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-deps-linux.sh
More file actions
executable file
·42 lines (35 loc) · 1.36 KB
/
install-deps-linux.sh
File metadata and controls
executable file
·42 lines (35 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
set -x
set -e
PWD=$(dirname "${BASH_SOURCE[0]}")
## default (branch build, PR build)
## for tag build, we use the tag version for seafile
SEAFILE_BRANCH="$TRAVIS_BRANCH"
## branch build and not a tag build
if [ "a$TRAVIS_PULL_REQUEST" = "afalse" -a -z "$TRAVIS_TAG" ]; then
SEAFILE_BRANCH=$(grep "PROJECT_VERSION " $PWD/../CMakeLists.txt |cut -f 2-2 -d'"' | cut -f 1-2 -d '.')
fi
## not a ci build
if [ -z "$SEAFILE_BRANCH" ]; then
SEAFILE_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [ -z "$SEAFILE_BRANCH" -o "$SEAFILE_BRANCH" = "HEAD" ]; then
SEAFILE_BRANCH=$(grep "PROJECT_VERSION " $PWD/../CMakeLists.txt |cut -f 2-2 -d'"' | cut -f 1-2 -d '.')
fi
fi
sudo apt-get update -qq
sudo apt-get install -qq valac uuid-dev libevent-dev libjansson-dev libqt4-dev
git clone --depth=1 --branch=master git://github.com/haiwen/libsearpc.git deps/libsearpc
git clone --depth=1 --branch=master git://github.com/haiwen/ccnet.git deps/ccnet
git clone --depth=1 --branch="$SEAFILE_BRANCH" git://github.com/haiwen/seafile.git deps/seafile
pushd deps/libsearpc
./autogen.sh && ./configure
make -j8 && sudo make install
popd
pushd deps/ccnet
./autogen.sh && ./configure --enable-client --disable-server
make -j8 && sudo make install
popd
pushd deps/seafile
./autogen.sh && ./configure --disable-fuse --disable-server --enable-client
make -j8 && sudo make install
popd