blob: 924c638d2e7142010c36ffd7d1a5611bf006b741 (
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
|
#!/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
dpkg-scanpackages /pkgdir /dev/null | gzip -9c > /pkgdir/Packages.gz
echo "deb [trusted=yes] file:/pkgdir ./" >/etc/apt/sources.list.d/taler-packaging-local.list
rm -rf /build/gnunet
mkdir -p /build/gnunet
cd /build/gnunet
TAG=${1:-master}
for n in gnunet gnunet-gtk
do
git clone --depth=1 git://git.gnunet.org/$n
cd $n
git checkout $TAG
# Install build-time dependencies.
mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
# We do a sparse checkout, so we need to hint
# the version to the build system.
dpkg-parsechangelog -S Version > .version
./bootstrap
dpkg-buildpackage -rfakeroot -b -uc -us
cd ..
done
ls /build/gnunet
cp /build/gnunet/*.deb /pkgdir/
|