-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·45 lines (34 loc) · 999 Bytes
/
install.sh
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
43
44
45
#!/bin/sh
INSTALL_DIR=`pwd`/htslib
#if [ ! -z "${1}" ]; then
# INSTALL_DIR=${1}
#fi
case "$(uname -s)" in
Darwin)
mkdir htslib
cd htslib
wget https://github.com/samtools/htslib/releases/download/1.10.2/htslib-1.10.2.tar.bz2
tar -xf htslib-1.10.2.tar.bz2
cd htslib-1.10.2
./configure --libdir=${INSTALL_DIR}/lib CC=clang --disable-libcurl #--without-libdeflate #uncomment, to build HTSlib without libdeflate
make
make prefix=${INSTALL_DIR} install
cd ..
cd ..
;;
Linux)
mkdir htslib
cd htslib
wget https://github.com/samtools/htslib/releases/download/1.10.2/htslib-1.10.2.tar.bz2
tar -xf htslib-1.10.2.tar.bz2
cd htslib-1.10.2
./configure --libdir=${INSTALL_DIR}/lib --disable-libcurl #--without-libdeflate #uncomment, to build HTSlib without libdeflate
make
make prefix=${INSTALL_DIR} install
cd ..
cd ..
;;
*)
echo 'unsupported OS'
;;
esac