File: rules

package info (click to toggle)
simutrans-pak64 120.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 12,712 kB
  • sloc: makefile: 103
file content (23 lines) | stat: -rwxr-xr-x 684 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
#!/usr/bin/make -f

# SVN revision and package version to use when building .orig.tar.gz
SVNREV  = 1974
VERSION = 120.4.1
SVNROOT = https://svn.code.sf.net/p/simutrans/code
UPSTREAM_SVNREV = 1974 # see README.source

%:
	dh $@

override_dh_auto_build:
	$(MAKE) SVNREV=$(UPSTREAM_SVNREV) all
	$(MAKE) all

override_dh_auto_install:
	$(MAKE) PAKDIR=$(CURDIR)/debian/simutrans-pak64/usr/share/games/simutrans/pak copy

get-orig-source:
	svn export -r $(SVNREV) $(SVNROOT)/pak64 simutrans-pak64-$(VERSION)
	find simutrans-pak64-$(VERSION) -type f -exec chmod -x "{}" +
	tar c simutrans-pak64-$(VERSION) | xz >../simutrans-pak64_$(VERSION).orig.tar.xz
	$(RM) -r simutrans-pak64-$(VERSION)