X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=debian%2Frules;h=f3638f807c35883e9428f47886c60a29b2dd12a8;hb=2692de91923fb9634c444c2a22a0af7666c86016;hp=943014d5cd5ae6f0528d18c6a85d952c55296047;hpb=45ddca3ce3534796b4ffb83c99686dca9847a12a;p=sven%2Ftclcurl.git diff --git a/debian/rules b/debian/rules index 943014d..f3638f8 100755 --- a/debian/rules +++ b/debian/rules @@ -3,14 +3,12 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -LDFLAGS += -Wl,-z,defs -Wl,--as-needed +export DEB_LDFLAGS_MAINT_PREPEND := -Wl,-z,defs -Wl,--as-needed +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) %: dh $@ --with quilt -override_dh_clean: - dh_clean -Xautom4te.cache -Xtests/a.tcl~ - override_dh_auto_configure: dh_auto_configure -- \ --prefix=/usr \ @@ -24,12 +22,13 @@ override_dh_auto_install: dh_auto_install --destdir=$(CURDIR)/debian/tclcurl mkdir $(CURDIR)/debian/tclcurl/usr/lib/tcltk - mv $(CURDIR)/debian/tclcurl/usr/lib/TclCurl* \ + mv $(CURDIR)/debian/tclcurl/usr/lib/$(DEB_HOST_MULTIARCH)/TclCurl* \ $(CURDIR)/debian/tclcurl/usr/lib/tcltk rm -rf \ $(CURDIR)/debian/tclcurl/usr/share/man/mann \ $(CURDIR)/debian/tclcurl/usr/bin \ - $(CURDIR)/debian/tclcurl/usr/include + $(CURDIR)/debian/tclcurl/usr/include \ + $(CURDIR)/debian/tclcurl/usr/lib/$(DEB_HOST_MULTIARCH) chmod 644 \ $(CURDIR)/tests/*.tcl \