-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
84 lines (66 loc) · 1.78 KB
/
build.sh
File metadata and controls
84 lines (66 loc) · 1.78 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/bin/sh
set -e
AC_VERSION=2.4.1
DACT_VERSION=2.4.1
APP=Dact
APPDIR=$PWD/${APP}.AppDir
# alpinocorpus
sudo apt-get install libxml2-dev libxslt1-dev libboost-all-dev
# dact
sudo apt-get install qttools5-dev-tools qtbase5-dev
if [ ! -d AppImageKit ] ; then
git clone https://github.com/probonopd/AppImageKit.git
(
cd AppImageKit
cmake .
make
)
fi
if [ ! -d ${APPDIR} ] ; then
mkdir -p ${APPDIR}/usr
fi
PREFIX=${APPDIR}/usr
if [ ! -d dbxml ] ; then
git clone https://github.com/rug-compling/dbxml.git
(
cd dbxml
./buildall.sh --prefix=${PREFIX}
)
fi
if [ ! -d alpinocorpus ] ; then
git clone https://github.com/rug-compling/alpinocorpus.git
(
cd alpinocorpus
git checkout ${AC_VERSION}
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DUSE_REMOTE_CORPUS:BOOL=OFF ..
)
fi
(
cd alpinocorpus/build
make install -j5
)
if [ ! -d dact ] ; then
git clone https://github.com/rug-compling/dact.git
(
cd dact
git checkout ${DACT_VERSION}
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=${PREFIX} -DUSE_REMOTE_CORPUS:BOOL=OFF ..
)
fi
(
cd dact/build
make install -j5
)
mkdir -p $PREFIX/lib/qt5/plugins
cp -r /usr/lib/x86_64-linux-gnu/qt5/plugins/* ${PREFIX}/lib/qt5/plugins
lddtree -l ${PREFIX}/bin/dact | egrep -v "${PREFIX}|lib[Xx]|drm|mesa|glapi|libgcc|libc\.so|librt|libpthread|libdl|libm\.so|libz\.so" | xargs cp -t $PREFIX/lib
lddtree -l ${PREFIX}/lib/qt5/plugins/platforms/libqxcb.so | egrep -v "${PREFIX}|lib[Xx]|drm|mesa|glapi|libgcc|libc\.so|librt|libpthread|libdl|libm\.so|libz\.so" | xargs cp -t $PREFIX/lib
cp dact.desktop ${APPDIR}
cp dact/resources/dact-espresso.png dact/resources/dact-espresso.svg ${APPDIR}
cp AppImageKit/AppRun ${APPDIR}
chmod a+x AppImageKit/AppRun
AppImageKit/AppImageAssistant ${APPDIR} Dact