aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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"