spiegel-keyman/linux/scripts/deb.sh
Eberhard Beilharz f0d365e4b8
chore(linux): remove unused building with pbuilder
We no longer build with pbuilder/cowbuilder, so this change removes
that unnecessary code. This also changes the `deb.sh` script which no
longer needs parameters since it's only purpose is now to build the
source package, and removes the no-longer needed targets from `Makefile`.

This solves #9356 as good as possible. We still have the list of
distributions in two places, but I don't see a way to import the list
of distributions to the packaging GHA.

Fixes: #9356
2024-06-24 18:37:10 +02:00

34 lines
718 B
Bash
Executable file

#!/bin/bash
# Build Debian source packages of Keyman
# It must be run from the keyman/linux directory
# parameters: ./deb.sh
set -e
BASEDIR=$(pwd)
#echo "basedir is $BASEDIR"
mkdir -p builddebs
# make the source packages
cd builddebs
vers=$(ls ../dist/keyman_*.orig.tar.gz)
#echo "vers1:${vers}"
vers=${vers##*_}
#echo "vers2:${vers}"
vers=${vers%*.orig.tar.gz}
#echo "vers3:${vers}"
cp -a "../dist/keyman_${vers}.orig.tar.gz" .
tar xfz "keyman_${vers}.orig.tar.gz"
cp -a ../../debian "keyman-${vers}"
cd "keyman-${vers}"
dch -v "${vers}-1" "local build"
echo "keyman-${vers}"
dch --release --distribution unstable ""
debuild -d -S -sa -Zxz -us -uc
cd "$BASEDIR/builddebs"
rm -rf "keyman-${vers}"
cd "$BASEDIR"