File: rules

package info (click to toggle)
fortunes-de 0.34-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 3,964 kB
  • sloc: sh: 409; makefile: 70
file content (32 lines) | stat: -rwxr-xr-x 781 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f
#export DH_VERBOSE=1

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

%:
	dh $@

#clean:
#	-rm -f build

override_dh_auto_build:
	# do nothing

override_dh_auto_test:
	# do nothing

override_dh_auto_install:
	PREFIX=`pwd`/debian/$(pkg)/usr \
	    MANDIR=share/man \
	    DOCDIR=share/doc/fortunes-de \
	    SCRIPTSEARCH=/usr/share/games/fortunes \
	    FORTUNEDIR=/usr/games \
	  ./install.sh
	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

override_dh_installchangelogs:
	dh_installchangelogs ChangeLog