Hi Julian,

thanks for the suggestion, sounds interesting.

On Mon, 14 Dec 2020, Julian Andres Klode wrote:
> > At the bare minimum, on x86, export DIGEST=1 when building and install
> > xxh_x86dispatch.h header. I'd love to see the xxh_x86dispatch.h also

Do you have something like the following in mind?
--- a/debian/libxxhash-dev.install
+++ b/debian/libxxhash-dev.install
@@ -4,3 +4,4 @@ usr/include/xxhash.h
 usr/include/xxh3.h
 usr/lib/*/pkgconfig/libxxhash.pc
 doc/xxhash_spec.md usr/share/doc/libxxhash-dev
+xxh_x86dispatch.h /usr/include
diff --git a/debian/rules b/debian/rules
index 2053a97..b6159cd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,12 @@

 #export DH_VERBOSE=1

-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+include /usr/share/dpkg/architecture.mk
+
+ifeq ($(DEB_HOST_ARCH),$(filter $(DEB_HOST_ARCH),i386 amd64))
+       export DISPATCH=1
+endif
+
 %:
        dh $@

Norbert

--
PREINING Norbert                              https://www.preining.info
Accelia Inc. + IFMGA ProGuide + TU Wien + JAIST + TeX Live + Debian Dev
GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13

Reply via email to