#!/usr/bin/make -f include /usr/share/dpkg/buildtools.mk export DEB_BUILD_MAINT_OPTIONS = hardening=+all reproducible=+fixfilepath export QUICKJS_INCLUDE=/usr/include/qjs export QUICKJS_LIB=/usr/lib/$(DEB_HOST_MULTIARCH) %: dh $@ # src/makefile puts an unconditional -s into LDFLAGS, which strips at link time # and leaves nothing for dh_strip to put in the dbgsym package. override_dh_auto_build: dh_auto_build -- STRIP= cp doc/man-edbrowse-debian.1 debian/edbrowse.1 # Upstream derives every install path from INSTALLBASE, which it computes as # realpath "$(DESTDIR)/$(PREFIX)". realpath fails on the not-yet-existing # staging directory, leaving INSTALLBASE empty and installing to /bin, outside # DESTDIR. Set INSTALLBASE directly instead. override_dh_auto_install: dh_auto_install -- INSTALLBASE=$(CURDIR)/debian/edbrowse/usr