mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
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
34 lines
718 B
Bash
Executable file
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"
|