From cb6927807304b7129610af72c61ed35c8b742fac Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Sat, 11 Mar 2023 12:18:12 +0100 Subject: Extend pkg-debian target Lintian still complains about the changelog format, but I currently have no good means of converting the existing changelog into Debian's preferred format. I also have no intention to rewrite it completely to comply with Debian's preferences. --- Makefile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 50c50f8..94bf25a 100644 --- a/Makefile +++ b/Makefile @@ -59,8 +59,18 @@ pkg-debian: # Copy Debian's control file mkdir -pv -- "$(PKG_ROOT)/DEBIAN" - grep -v '^\#' ./etc/debian/control > "$(PKG_ROOT)/DEBIAN/control" - printf "Version: %s\n" "$(PKG_VERSION)" >> "$(PKG_ROOT)/DEBIAN/control" + printf "Version: %s\n" "$(PKG_VERSION)" > "$(PKG_ROOT)/DEBIAN/control" + grep -v '^\#' ./etc/debian/control >> "$(PKG_ROOT)/DEBIAN/control" + + # Include the changelog + mkdir -pv -- "$(PKG_ROOT)/usr/share/doc/bashtard" + gzip -9n < CHANGELOG.md > "$(PKG_ROOT)/usr/share/doc/bashtard/changelog.gz" + + # Include license + cp -v -- LICENSES/AGPL-3.0-or-later.txt "$(PKG_ROOT)/usr/share/doc/bashtard/copyright" + + # Debian wants all .bash files to be +x + find "$(PKG_ROOT)" -type f -iname "*.bash" | xargs chmod +x # Generate the .deb file mkdir -pv -- "dist" -- cgit v1.1