[changes brought forward from 1.15.1+dfsg1-1~exp3+rpi1 by Peter Michael Green <plugwash@raspbian.org> at Wed, 15 Mar 2017 10:16:18 +0000]
* Fix clean target.
* Build for armv6.
- * Manually fixup "install" step so that only armv6 stuff ends up
- in the resulting packages.
-- Raspbian forward porter <root@raspbian.org> Fri, 28 Jul 2017 13:32:44 +0000
override_dh_auto_install:
DESTDIR=$(DEB_DESTDIR) $(RUSTBUILD) dist $(RUSTBUILD_FLAGS) --install
- #upstream build produces both armv6 and armv7 stuff and installs a
- #mixture of both. Fix things up so that only the armv6 stuff ends up
- #in the packages.
- cp arm-unknown-linux-gnueabihf/stage2/bin/rustc debian/tmp/usr/bin/
- cp arm-unknown-linux-gnueabihf/stage2/bin/rustdoc debian/tmp/usr/bin/
- cp arm-unknown-linux-gnueabihf/stage2/lib/*.so debian/tmp/usr/lib/
- rm -rf debian/tmp/usr/lib/rustlib/*armv7-unknown-linux-gnueabihf
-
mkdir -p $(DEB_DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/
mv $(DEB_DESTDIR)/usr/lib/lib*.so $(DEB_DESTDIR)/usr/lib/$(DEB_HOST_MULTIARCH)/