File: rules

package info (click to toggle)
dwb 20140702hg-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,860 kB
  • ctags: 2,802
  • sloc: ansic: 27,062; makefile: 341; sh: 84
file content (29 lines) | stat: -rwxr-xr-x 833 bytes parent folder | download
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
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export GTK=3
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic


COMMIT=6224470489eb5ba92987e01396269f8b7cd78ada
get-orig-source:
	TMPD=`mktemp -d` && \
		git clone https://bitbucket.org/portix/dwb.git \
			"$$TMPD/dwb" && \
    CDATE=`git --git-dir="$$TMPD/dwb/.git" show \
			--format=format:%ci -s $(COMMIT) | \
			awk '{ gsub(/-/,""); print $$1 }'` && \
		git --git-dir="$$TMPD/dwb/.git" archive \
			--prefix=dwb/ $(COMMIT) | \
			bzip2 > ../dwb_"$$CDATE"hg.orig.tar.bz2 && \
		rm -rf $$TMPD

override_dh_install:
	mkdir -p debian/dwb/usr/share/bash-completion/completions
	install -m 644 contrib/bash-completion \
		debian/dwb/usr/share/bash-completion/completions/dwb
	dh_install
%:
	dh $@