Merge pull request #10835 from akallabeth/create_deb.sh

[packaging,scripts] add create_deb.sh
This commit is contained in:
akallabeth 2024-11-08 10:19:49 +01:00 committed by GitHub
commit f88eda3f11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

24
packaging/scripts/create_deb.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash -xe
SCRIPT_PATH=$(dirname "${BASH_SOURCE[0]}")
SCRIPT_PATH=$(realpath "$SCRIPT_PATH")
BUILD_DEPS=$(/usr/bin/which dpkg-checkbuilddeps)
BUILD_PKG=$(/usr/bin/which dpkg-buildpackage)
if [ -z "$BUILD_DEPS" || -z "$BUILD_PKG" ];
then
echo "dpkg-buildpackage [$BUILD_PKG] and dpkg-checkbuilddeps [$BUILD_DEPS] required"
echo "Install with 'sudo apt install dpkg-dev'"
exit 1
fi
# First create a link to the debian/control folder
cd "$SCRIPT_PATH/../.."
ln -sf "packaging/deb/freerdp-nightly" "debian"
# Check all dependencies are installed
$BUILD_DEPS "debian/control"
# And finally build the package
$BUILD_PKG