chiark / gitweb /
Debian build: Add `Replaces: wiringpi' to the other packages
[wiringPi.git] / debian / rules
index 53779184b14c09c4754038168fd9dc4283caade1..9a08dfcb093392f8a2b2736a9ed977850b4e9dba 100755 (executable)
@@ -37,7 +37,14 @@ override_dh_auto_build: dirs
            bash -xe ./build
 
 override_dh_auto_install:
-       dh_install
+
+override_dh_install:
+       dh_install -X COPYING.LESSER
+       set -e; cd debian/libwiringpi-dev; \
+        for f in `find usr/share/doc -name \*.sh`; do \
+                       mkdir -p ../wiringpi-tools/$${f%/*}; \
+                       mv $$f ../wiringpi-tools/$$f; \
+       done
        set -ex; for l in libwiringPi libwiringPiDev; do \
                ln -sf $$l.so.$${VERSION} \
                        debian/libwiringpi$$soname/usr/lib/$$l.so.$$soname; \
@@ -51,5 +58,8 @@ override_dh_fixperms:
        chown root.root $$b; \
        chmod 4755 $$b
 
+override_dh_compress:
+       dh_compress -Xexamples
+
 %:
        dh $@