File: rules

package info (click to toggle)
kobodeluxe 0.5.1-8
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,356 kB
  • ctags: 4,910
  • sloc: ansic: 18,747; cpp: 18,203; sh: 3,192; makefile: 160
file content (35 lines) | stat: -rwxr-xr-x 889 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
30
31
32
33
34
35
#!/usr/bin/make -f

SCORES	= var/games/kobo-deluxe/scores
PACKAGE	= $(firstword $(shell dh_listpackages))
DATAPKG	= $(PACKAGE)-data
TMP	= $(CURDIR)/debian/tmp
PKGDIR	= $(CURDIR)/debian/$(PACKAGE)

%:
	dh $@

override_dh_auto_configure:
	ln -sf /usr/share/misc/config.sub
	ln -sf /usr/share/misc/config.guess
	aclocal
	automake
	autoconf
	./configure --bindir=/usr/games --prefix=/usr --sysconfdir=/etc \
		--mandir=/usr/share/man --sharedstatedir=/usr/share

override_dh_auto_build:
	$(MAKE) kobo_scoredir=/$(SCORES)

override_dh_auto_install:
	mkdir -p $(TMP)/$(SCORES)
	$(MAKE) DESTDIR=$(TMP) kobo_scoredir=/$(SCORES) install
	rm -rfv $(TMP)/usr/games/kobo-deluxe \
		$(TMP)/usr/share/kobo-deluxe/scores

override_dh_fixperms-arch:
	dh_fixperms -a
	chown root.games $(PKGDIR)/usr/games/kobodl \
		$(PKGDIR)/$(SCORES)
	chmod g+s $(PKGDIR)/usr/games/kobodl
	chmod 2775 $(PKGDIR)/$(SCORES)