2025-02-20 15:53:16 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
2025-02-20 19:59:11 +01:00
|
|
|
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
|
|
|
|
|
2025-02-20 16:07:30 +01:00
|
|
|
%:
|
|
|
|
dh ${@}
|
2025-02-20 15:53:16 +01:00
|
|
|
|
2025-02-20 16:07:30 +01:00
|
|
|
override_dh_auto_configure:
|
2025-02-20 20:02:13 +01:00
|
|
|
dh_auto_configure -- --enable-shared --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) CFLAGS="$(CFLAGS CPPFLAGS)" LDFLAGS="$(LDFLAGS)"
|
2025-02-20 15:53:16 +01:00
|
|
|
|
2025-02-20 16:07:30 +01:00
|
|
|
override_dh_auto_install:
|
2025-02-20 16:58:32 +01:00
|
|
|
dh_auto_install -- LDCONFIG=/bin/true
|
2025-02-20 15:53:16 +01:00
|
|
|
|
2025-02-20 16:58:14 +01:00
|
|
|
# adding missing symlink
|
2025-02-20 19:59:11 +01:00
|
|
|
ifeq ($(DEB_HOST_MULTIARCH),)
|
2025-02-20 16:57:03 +01:00
|
|
|
ln -s liblz.so.1.1 debian/tmp/usr/lib/liblz.so
|
2025-02-20 19:59:11 +01:00
|
|
|
else
|
|
|
|
ln -s liblz.so.1.1 debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/liblz.so
|
|
|
|
endif
|
2025-02-20 15:53:16 +01:00
|
|
|
|
2025-02-20 16:58:14 +01:00
|
|
|
# removing unused files
|
2025-02-20 16:09:07 +01:00
|
|
|
rm -f debian/tmp/usr/share/info/dir*
|
|
|
|
|
2025-02-20 17:03:35 +01:00
|
|
|
override_dh_builddeb:
|
2025-02-20 20:01:31 +01:00
|
|
|
dh_builddeb -- -Zxz -z9
|
2025-02-20 17:03:35 +01:00
|
|
|
|
2025-02-20 19:59:11 +01:00
|
|
|
override_dh_gencontrol:
|
|
|
|
ifeq ($(DEB_HOST_MULTIARCH),)
|
|
|
|
dh_gencontrol
|
|
|
|
else
|
|
|
|
dh_gencontrol -- -Vmultiarch:Pre-Depends="multiarch-support"
|
|
|
|
endif
|
|
|
|
|
2025-02-20 16:09:35 +01:00
|
|
|
override_dh_install:
|
|
|
|
dh_install --fail-missing
|
|
|
|
|
2025-02-20 16:07:30 +01:00
|
|
|
override_dh_strip:
|
2025-02-20 15:53:16 +01:00
|
|
|
dh_strip --dbg-package=liblz-dbg
|