build-system: build for Ubuntu 21.04 / hirsute as well

This release drops the qt5-default package - which really wasn't needed since
focal. So just drop it on all of the builds after 18.04 (bionic).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2021-05-07 11:48:28 -07:00
parent 312b760c5b
commit fd3ebf9b62
4 changed files with 84 additions and 4 deletions

View file

@ -110,15 +110,23 @@ cp debian/changelog ../changelog$SUFFIX
debuild -S -d
#create builds for the newer Ubuntu releases that Launchpad supports
# create builds for the newer Ubuntu releases that Launchpad supports
#
# the bionic release is the last that needs the qt5-default package for a successful build,
# and as of hirsute this package no longer exists. So simply remove it from the control
# file when building the newer ones
sed -i.bak "/qt5-default/d" debian/control
rel=bionic
others="focal groovy"
others="focal groovy hirsute"
for next in $others
do
sed -i "s/${rel}/${next}/g" debian/changelog
debuild -S -d
rel=$next
done
if [ -f debian/control.bak ] ; then
mv debian/control.bak debian/control
fi
cd ..