summaryrefslogtreecommitdiff
path: root/contrib/ci/jobs/4-deb-package/job.sh
blob: dc78cdf247e52f4176f98a5ccc5af3a6afd90908 (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
#!/bin/bash
set -exuo pipefail
# This file is in the public domain.
# Helper script to build the latest DEB packages in the container.

unset LD_LIBRARY_PATH


git apply ./ci/jobs/2-deb-package/install-fix.patch

# Get current version from debian/control file.
DEB_VERSION=$(dpkg-parsechangelog -S Version)

# 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.
echo $DEB_VERSION > .version
./bootstrap
dpkg-buildpackage -rfakeroot -b -uc -us

ls ../*.deb
mv ../*.deb /artifacts/