summaryrefslogtreecommitdiff
path: root/debian/rules
blob: 874dcaf7be22b1bee1bd0b9f54758cc96a5c6947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/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/

	mkdir -p debian/tmp/usr/share/zsh/help
	nroff -mandoc -Tascii Doc/zshbuiltins.1 | colcrt - | \
	( cd debian/tmp/usr/share/zsh/help && perl $(CURDIR)/Util/helpfiles )

	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/


override_dh_strip:
	dh_strip --dbg-package=zsh-dbg

override_dh_compress:
	dh_compress -X.pdf -Xhtml