summaryrefslogtreecommitdiffstats
path: root/debian/rules
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 14:24:06 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 14:24:06 +0000
commita71fdabc80fe468107fdad10273ca7ac45b89857 (patch)
tree2321e3786e669fadf31da2f7976c4b8825069838 /debian/rules
parentAdding upstream version 1.13. (diff)
downloadclzip-a71fdabc80fe468107fdad10273ca7ac45b89857.tar.xz
clzip-a71fdabc80fe468107fdad10273ca7ac45b89857.zip
Adding debian version 1.13-5.debian/1.13-5debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules26
1 files changed, 26 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f3fbaa9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,26 @@
+#!/usr/bin/make -f
+
+include /usr/share/dpkg/buildtools.mk
+
+%:
+ dh ${@}
+
+override_dh_auto_configure:
+ dh_auto_configure -- 'CC=$(CC) -g'
+
+override_dh_auto_install:
+ dh_auto_install -- DESTDIR=$(CURDIR)/debian/clzip
+
+execute_after_dh_auto_install:
+ # update-alternatives
+ mv debian/clzip/usr/bin/clzip debian/clzip/usr/bin/lzip.clzip
+ ln -s /usr/bin/lzip.clzip debian/clzip/usr/bin/clzip
+
+ mv debian/clzip/usr/share/info/clzip.info debian/clzip/usr/share/info/lzip.clzip.info
+ ln -s /usr/share/info/lzip.clzip.info.gz debian/clzip/usr/share/info/clzip.info.gz
+
+ mv debian/clzip/usr/share/man/man1/clzip.1 debian/clzip/usr/share/man/man1/lzip.clzip.1
+ ln -s /usr/share/man/man1/lzip.clzip.1.gz debian/clzip/usr/share/man/man1/clzip.1.gz
+
+ # removing unused files
+ rm -f debian/clzip/usr/share/info/dir*