summaryrefslogtreecommitdiff
path: root/packaging/ubuntu-mantic-docker/gnunet-build.sh
blob: 614c5e609f3c6848245c0c11b5142ee9fae41134 (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
#!/bin/sh
# This file is in the public domain.
# Helper script to build the latest DEB packages in the container.

set -eu
unset LD_LIBRARY_PATH

mkdir -p /build/gnunet
cd /build/gnunet

# Fetch source
rm -rf *

pip3 install --break-system-packages sphinx-book-theme sphinx-multiversion

for n in gnunet
do
    git clone git://git.gnunet.org/$n
    cd $n
    git checkout $1
    ./bootstrap
    dpkg-buildpackage -rfakeroot -b -uc -us
    cd ..
    dpkg -i *.deb
done

tar cvf ../packages.tgz *.deb

cd ..