summaryrefslogtreecommitdiff
path: root/scripts/build-librewolf-dpkg.sh
blob: cd0eeb09ab4d3b750bd7c53d6f826aafa00d04c2 (plain)
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

# Load settings
# basically, dot-source the conf file.
test -z "${librewolf_dpkg_conf}" && export librewolf_dpkg_conf="$( find "$( dirname "${0}" )" -maxdepth 2 -name "$( basename "${0%%.sh}.conf" )" -print 2>/dev/null | head -n1 )"
test ! -r "${librewolf_dpkg_conf}" && { echo "Unable to load config file, which should be named the same as this script but with a .conf ending. Aborted." 1>&2 ; exit 1 ; }
. "${librewolf_dpkg_conf}"

work_dir=${CI_PROJECT_DIR}/prepared/

# Aborts the script upon any faliure
set -e;

apt update
apt install -y  \
libx11-dev \
libx11-xcb-dev \
libxt-dev \
libgtk-3-dev \
libgtk2.0-dev \
libglib2.0-dev \
libdrm-dev \
libstartup-notification0-dev \
libjpeg-dev \
zlib1g-dev \
libreadline-dev \
libnspr4-dev \
libnss3-dev \
libvpx-dev \
libdbus-glib-1-dev \
libffi-dev \
libevent-dev \
libpulse-dev \
libasound2-dev \
libjack-dev \
yasm \
nasm \
llvm-dev \
libclang-dev \
clang \
nodejs \
zip \
locales \
xvfb \
xfonts-base \
ttf-bitstream-vera \
fonts-freefont-ttf \
fonts-dejima-mincho \
git \
wget \
xz-utils \
iso-codes \
curl

curl https://sh.rustup.rs -o rustup.sh
bash rustup.sh -y
source /root/.cargo/env
cargo install --version 0.17.0 cbindgen

cd ${work_dir}
dpkg-source -x librewolf_${pkgver}-${pkgrel}.dsc ${output_dir}
cd ${output_dir}
dpkg-buildpackage -us -uc -d
bgstack15