#!/usr/bin/make -f export LDFLAGS = -Wl,--as-needed %: dh $@ --with autoreconf override_dh_auto_configure: dh_auto_configure -- \ --enable-maildir-support \ --enable-etcdir=/etc/zsh \ --enable-function-subdirs \ --enable-site-fndir=/usr/local/share/zsh/site-functions \ --enable-fndir=/usr/share/zsh/functions \ --with-tcsetpgrp --with-term-lib="ncursesw tinfo" \ --enable-cap --enable-pcre \ --enable-readnullcmd=pager \ --enable-custom-patchlevel=Debian \ --enable-additional-fpath=/usr/share/zsh/vendor-functions,/usr/share/zsh/vendor-completions override_dh_auto_build: $(MAKE) $(MAKE) pdf override_dh_auto_install: $(MAKE) \ install \ install.info \ install.html \ DESTDIR=$(CURDIR)/debian/tmp \ htmldir=/usr/share/doc/zsh-doc/html # Hardlinks: rm debian/tmp/usr/bin/zsh-* cp Doc/zsh.pdf debian/tmp/usr/share/doc/zsh-doc/ nroff -mandoc -Tascii Doc/zshbuiltins.1 | colcrt - | \ sed -e 's/±/{+|-}/' | \ perl $(CURDIR)/Util/helpfiles /dev/stdin debian/tmp/usr/share/zsh/help mkdir -p debian/tmp/usr/include/zsh mkdir -p debian/tmp/usr/share/zsh-dev mkdir -p debian/tmp/usr/share/aclocal cp Src/*.epro debian/tmp/usr/include/zsh/ cp Src/makepro.awk debian/tmp/usr/share/zsh-dev/ cp Config/aczshoot.m4 debian/tmp/usr/share/aclocal/zshoot.m4 cp \ Src/hashtable.h \ Src/prototypes.h \ Src/sigcount.h \ Src/signals.h \ Src/zsh.h \ Src/zsh_system.h \ Src/ztype.h \ debian/tmp/usr/include/zsh/ sed -i -e 's,^local HELPDIR=.*,local HELPDIR=$${HELPDIR:-/usr/share/zsh/help},; s,:-more,:-/usr/bin/pager,;' \ debian/tmp/usr/share/zsh/functions/Misc/run-help override_dh_strip: dh_strip --dbg-package=zsh-dbg override_dh_compress: dh_compress -X.pdf -Xhtml