summaryrefslogtreecommitdiff
path: root/scripts/build-librewolf-dpkg.sh
diff options
context:
space:
mode:
authorohfp <1813007-ohfp@users.noreply.gitlab.com>2021-02-02 18:47:24 +0100
committerohfp <1813007-ohfp@users.noreply.gitlab.com>2021-02-02 18:47:24 +0100
commit5c3e50d985384bf713f140933cb1177b8ece04fa (patch)
tree70ef61b8a924a0330d6da34d01f632cfe7a93002 /scripts/build-librewolf-dpkg.sh
downloadlibrewolf-debian-5c3e50d985384bf713f140933cb1177b8ece04fa.tar.gz
librewolf-debian-5c3e50d985384bf713f140933cb1177b8ece04fa.tar.bz2
librewolf-debian-5c3e50d985384bf713f140933cb1177b8ece04fa.zip
first draft of debian build CI, credits to @bgstack15
Diffstat (limited to 'scripts/build-librewolf-dpkg.sh')
-rw-r--r--scripts/build-librewolf-dpkg.sh57
1 files changed, 57 insertions, 0 deletions
diff --git a/scripts/build-librewolf-dpkg.sh b/scripts/build-librewolf-dpkg.sh
new file mode 100644
index 0000000..5e163e8
--- /dev/null
+++ b/scripts/build-librewolf-dpkg.sh
@@ -0,0 +1,57 @@
+#!/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}"
+
+# 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 \
+curl
+
+curl https://sh.rustup.rs -o rustup.sh
+bash rustup.sh -y
+source /root/.cargo/env
+cargo install --version 0.16.0 cbindgen
+
+cd ${work_dir}
+dpkg-source -x librewolf_${pkgrel}-${pkgver}.dsc ${output_dir}
+cd ${output_dir}
+dpkg-buildpackage -us -uc -d
bgstack15