forked from chembl/mychembl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosra.sh
53 lines (48 loc) · 1.07 KB
/
osra.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
46
47
48
49
50
51
52
53
#!/bin/bash
# This script installs osra (http://cactus.nci.nih.gov/osra/)
# Author: Michal Nowotka, [email protected]
# Created date: 06.10.2014
# installing TCLAP (http://tclap.sourceforge.net/)
cd /tmp
wget $TCLAP_LOCATION -O tclap.tgz
tar -zxvf tclap.tgz
cd tclap-${TCLAP_VERSION}/
./configure
make
sudo make install
cd ..
rm -rf tclap-${TCLAP_VERSION}/
rm tclap.tgz
# installing ocrad (https://www.gnu.org/software/ocrad/) from source bacause standard distribution doesn't work for me...
cd /tmp
wget $OCRAD_LOCATION -O ocrad.tgz
tar -zxvf ocrad.tgz
cd ocrad-${OCRAD_VERSION}/
./configure
make
sudo make install
cd ..
rm -rf ocrad-${OCRAD_VERSION}/
rm ocrad.tgz
# installing special patched version of gocr
cd /tmp
wget $GOCR_LOCATION -O gocr.tgz
tar -zxvf gocr.tgz
cd gocr-${GOCR_VERSION}/
./configure
make libs
sudo make install
cd ..
rm -rf gocr-${GOCR_VERSION}/
rm gocr.tgz
# finally, installing osra itself
cd /tmp
wget $OSRA_LOCATION -O osra.tgz
tar -zxvf osra.tgz
cd osra-${OSRA_VERSION}/
./configure
make all
sudo make install
cd ..
rm -rf osra-${OSRA_VERSION}/
rm osra.tgz