aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2023-03-11 12:18:12 +0100
committerPatrick Spek <p.spek@tyil.nl>2023-03-11 12:18:12 +0100
commitcb6927807304b7129610af72c61ed35c8b742fac (patch)
treee669bebdcee271fd4992b163a4c547065400f957 /Makefile
parente6d7a1ec24144312102b0e48fef36ec4393904c6 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 12 insertions, 2 deletions
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"