summaryrefslogtreecommitdiff
path: root/packaging/ubuntu-docker/debbuild.sh
blob: b395212456b0ab545648720ac6b51ad7d1d8e43d (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
#!/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

apt update
apt upgrade
apt dist-upgrade

mkdir /build
cd /build

# Fetch source
rm -rf *
git clone git://git.gnunet.org/gnunet
git clone git://git.gnunet.org/gnunet-gtk
git clone git://git.taler.net/exchange
git clone git://git.taler.net/merchant
git clone git://git.taler.net/sync
git clone git://git.taler.net/anastasis
git clone git://git.taler.net/anastasis-gtk
git clone git://git.taler.net/wallet-core

for n in gnunet gnunet-gtk exchange merchant sync anastasis anastasis-gtk
do
    cd $n
    ./bootstrap
    dpkg-buildpackage -rfakeroot -b -uc -us
    cd ..
    dpkg -i *.deb
done

cd wallet-core
./bootstrap
./configure --prefix=/usr
make install
dpkg-buildpackage -rfakeroot -b -uc -us
cd ..

tar cvf packages.tgz *.deb