fix dh_auto_install override
authorIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 21 Apr 2022 13:56:33 +0000 (15:56 +0200)
committerIOhannes m zmölnig (Debian/GNU) <umlaeute@debian.org>
Thu, 21 Apr 2022 13:56:33 +0000 (15:56 +0200)
Gbp-Dch: clean

debian/jacktrip-gui.install
debian/rules

index 9c558e357c41674e39880abb6c3209e539de42e2..1b91047ac96bd8844a56f542e5b8f7c2216cecde 100644 (file)
@@ -1 +1 @@
-.
+usr/
index 8eef3291f962fe87514b6a5e0676b4c53ee4cbb7..e246df5f1ac0a171eb4707b34387175abfabfe17 100755 (executable)
@@ -21,6 +21,7 @@ DEB_SRCDIR = .
 override_dh_clean:
        dh_clean
        rm -rf $(FLAVORS:%=$(builddir)%)
+       -rmdir debian/build/
        rm -f $(FLAVORS:%=jacktrip-%.1)
 
 #.PHONY: $(patsubst %,configure_%,$(FLAVORS))
@@ -45,9 +46,13 @@ test_%:
        dh_auto_test -a -B $(builddir)$*
 
 #.PHONY: $(patsubst %,install_%,$(FLAVORS))
-override_dh_auto_install-arch: $(patsubst %,test_%,$(FLAVORS))
+override_dh_auto_install-arch: $(patsubst %,install_%,$(FLAVORS))
 install_%:
        dh_auto_install -a -B $(builddir)$*
+       -mv debian/tmp/usr/bin/jacktrip debian/tmp/usr/bin/jacktrip-$*
+       -cp debian/jacktrip.1 debian/tmp/usr/share/man/man1/jacktrip-$*.1
+       -mv debian/tmp/usr/share/man/man1/jacktrip.1 debian/tmp/usr/share/man/man1/jacktrip-$*.1
+       -find debian/tmp -type f -name "*.desktop" -exec sed -e "s|^\(Exec=jacktrip\)$|\1-$*|" -i {} ";"
 install_cli:
        echo "skipping auto_install for flavour 'cli'"