Hi.
I said:
Instead of using "mv" after dh_install, I would probably
try to refactor this using debian/foo.install files,
which allow wilcards.
Those debian/*.install files would tell dh_install where
to put things, without having to move them ourselves in debian/rules.
I attach a proof of concept. Beware because it's completely untested,
but I believe you will get the idea. You will need to use debdiff
with the old packages to ensure that each package contains what
they should contain.
Thanks.
diff --git a/debian/dislocker.install b/debian/dislocker.install
new file mode 100644
index 0000000..f7177e8
--- /dev/null
+++ b/debian/dislocker.install
@@ -0,0 +1,2 @@
+usr/bin
+usr/share
diff --git a/debian/libdislocker0.7.install b/debian/libdislocker0.7.install
new file mode 100644
index 0000000..32ef747
--- /dev/null
+++ b/debian/libdislocker0.7.install
@@ -0,0 +1 @@
+usr/lib*
diff --git a/debian/rules b/debian/rules
index fca4f28..5293977 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,10 +13,6 @@ export PVER=$(shell dpkg-parsechangelog --show-field version
| cut -d"-" -f1)
override_dh_install-arch:
dh_install
- mv $(TEMPDEB)/usr/lib/libdislocker* \
- $(DESTDIRLIB)/usr/lib/
- mv $(TEMPDEB)/usr/bin $(DESTDIRBIN)/usr/
- mv $(TEMPDEB)/usr/share $(DESTDIRBIN)/usr/
override_dh_makeshlibs:
dh_makeshlibs -- -v$(PVER)