From 6cd916f577940810e7dc1cfa7e52425562bcd2e5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 25 Sep 2015 23:59:32 +0000 Subject: [PATCH] Debian build: Make `./build debian' do a true Debian source build `./build debian' installs the build dependencies (using sudo) if necessary, and then runs dpkg-buildpackage to run the standardised Debian package build system. Retain the old style build, invocable with `./build debian-template'. Signed-off-by: Ian Jackson --- build | 12 +++++++++++- debian/changelog | 7 +++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/build b/build index c2a589c..57f150e 100755 --- a/build +++ b/build @@ -75,9 +75,19 @@ if [ x$1 = "xuninstall" ]; then exit fi +if [ x$1 = "xdebian" ]; then + if ! dpkg-checkbuilddeps; then + $sudo apt-get install build-essential debhelper fakeroot + dpkg-checkbuilddeps + fi + dpkg-buildpackage -b -us -uc -rfakeroot + exit +fi + # Only if you know what you're doing! -if [ x$1 = "xdebian" ]; then +if [ x$1 = "xdebian-template" ]; then + # produces a single .deb in a nonstandard way from debian-template/ here=`pwd` cd debian-template/wiringPi rm -rf usr diff --git a/debian/changelog b/debian/changelog index 7f04ad5..19f972d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +wiringpi (2.28~iwj1) unstable; urgency=medium + + * Make `./build debian' do a true Debian source package based + build; provide the old style build as `./build debian-template' + + -- + wiringpi (2.26~iwj) rpi-unstable; urgency=low * Initial version with real Debian source package build. -- 2.30.2