diff options
-rw-r--r-- | debian/control | 3 | ||||
-rwxr-xr-x | debian/rules | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/debian/control b/debian/control index 3d68f4769..f1f985ca3 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Build-Depends: bsdmainutils, debhelper (>= 9~), dh-autoreconf, - dpkg-dev (>= 1.16.1~), + dpkg-dev (>= 1.16.2~), ghostscript, groff, groff-base, @@ -82,6 +82,7 @@ Package: zsh-static Architecture: any Depends: zsh, ${misc:Depends} Suggests: zsh-doc +Built-Using: ${Built-Using} Description: shell with lots of features (static link) Zsh is a UNIX command interpreter (shell) usable as an interactive login shell and as a shell script command diff --git a/debian/rules b/debian/rules index 20e5e5937..879934c55 100755 --- a/debian/rules +++ b/debian/rules @@ -39,6 +39,8 @@ CONFIGFLAGS += --enable-zsh-secure-free CONFIGFLAGS += --enable-zsh-hash-debug endif +BUILT_USING=$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W libcap-dev libncursesw5-dev libpcre3-dev eglibc) + build: build-arch build-indep build-arch: configure-stamp @@ -202,7 +204,7 @@ binary-arch-static: build-static dh_fixperms -pzsh-static dh_installdeb -pzsh-static dh_md5sums -pzsh-static - dh_gencontrol -pzsh-static + dh_gencontrol -pzsh-static -- -VBuilt-Using="$(BUILT_USING)" dh_builddeb -pzsh-static -- -Zxz binary-arch-dev: build-arch |