spiegel-keyman/linux/scripts/debian.sh
Eberhard Beilharz 6b999bc911
chore(linux): Update debian metadata based on Debian repos
This is a cherry-pick of PR#4223:

- Add script to create debian source package
- Update debian metadata based on Debian repos
- Remove some lintian warnings and errors
- Remove support Xenial
- Reduce size of icon
- Omit confusing values from gbp.conf
2021-01-12 18:38:18 +01:00

34 lines
823 B
Bash
Executable file

#!/bin/bash
# Build source packages suitable to import into the Debian package repos
# (https://salsa.debian.org/input-method-team)
# must be run from linux dir
# parameters: [PROJECT="<project>"] ./scripts/debian.sh
# PROJECT="<project>" only upload this project
set -e
## START STANDARD BUILD SCRIPT INCLUDE
# adjust relative paths as necessary
THIS_SCRIPT="$(greadlink -f "${BASH_SOURCE[0]}" 2>/dev/null || readlink -f "${BASH_SOURCE[0]}")"
. "$(dirname "$THIS_SCRIPT")/../../resources/build/build-utils.sh"
## END STANDARD BUILD SCRIPT INCLUDE
. $(dirname "$THIS_SCRIPT")/package-build.inc.sh
checkPrerequisites
BASEDIR=$(pwd)
rm -rf debianpackage
mkdir -p debianpackage
for proj in ${projects}; do
downloadSource debianpackage
cd ${proj}-${version}
debuild -d -S -sa -Zxz
cd ${BASEDIR}
done