-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sh
executable file
·63 lines (48 loc) · 1.32 KB
/
build.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
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
BUILD_DIR=$(realpath .)
sudo apt -y install \
git \
g++ \
libgtk-3-dev \
gtk-doc-tools \
gnutls-bin \
valac \
libtool \
intltool \
libpcre2-dev \
libglib3.0-cil-dev \
libgnutls28-dev \
libgirepository1.0-dev \
libxml2-utils \
gperf
git clone -b 0.56.2.a https://github.com/thestinger/vte-ng.git
git clone --recursive -b v15 https://github.com/thestinger/termite.git
cd $BUILD_DIR/vte-ng
NOCONFIGURE=1 ./autogen.sh
./configure \
--prefix=$BUILD_DIR/vte-static \
--enable-static \
--disable-shared \
--enable-vala=no \
--disable-gtk-doc \
--disable-introspection
make
make install
make install-pkgconfigDATA
cd $BUILD_DIR/termite
export PKG_CONFIG_PATH="$BUILD_DIR/vte-static/lib/pkgconfig"
make
sudo make install
sudo cat << EOF > termite.wrapper
#!/bin/bash
exec /usr/local/bin/termite "\$@"
EOF
sudo chmod +x termite.wrapper
sudo install -d /usr/local/bin/
sudo install -m 755 termite.wrapper /usr/local/bin/
sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/termite.wrapper 60
sudo install -d /usr/local/etc/profile.d/
sudo install -m 644 "$BUILD_DIR/vte-static/etc/profile.d/vte.sh" /usr/local/etc/profile.d/
sudo install -d /usr/share/terminfo/x
sudo ln -s /usr/local/share/terminfo/x/xterm-termite /usr/share/terminfo/x/xterm-termite
cd $BUILD_DIR