File: rules

package info (click to toggle)
fortunes-de 0.25-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,692 kB
  • ctags: 17
  • sloc: sh: 382; makefile: 89
file content (50 lines) | stat: -rwxr-xr-x 1,161 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
#export DH_VERBOSE=1

pkg=fortunes-de
inst_dir=usr/share/games/fortunes
dest_dir=$(inst_dir)

build:
	dh_testdir
	touch build

clean:
	dh_testdir
	dh_testroot
	-rm -f build
	dh_clean

binary-indep: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	PREFIX=`pwd`/debian/$(pkg)/usr \
	    MANDIR=share/man \
	    DOCDIR=share/doc/fortunes-de \
	    SCRIPTSEARCH=/usr/share/games/fortunes \
	    FORTUNEDIR=/usr/games \
	  ./install.sh -utf8
	sed "s/\(^.FORTUNE .*\) | iconv -f .*/\1/" `pwd`/debian/$(pkg)/usr/games/spruch > \
	    spruch.tmp; chmod 755 spruch.tmp; mv spruch.tmp `pwd`/debian/$(pkg)/usr/games/spruch
	mv `pwd`/debian/$(pkg)/usr/share/games/fortunes/de/*.dat `pwd`/debian/$(pkg)/usr/share/games/fortunes-de
#	ln -s spruch `pwd`/debian/$(pkg)/usr/games/fortune
#	ln -s spruch.6 `pwd`/debian/$(pkg)/usr/share/man/man6/fortune.6
	dh_installdocs
	dh_installdebconf 
#	dh_installman
	dh_installchangelogs ChangeLog
	dh_installexamples
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol -u-isp
	dh_md5sums
	dh_builddeb

binary-arch: build

binary: binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean