File: rules

package info (click to toggle)
jzip 210r20001005d-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,124 kB
  • sloc: ansic: 11,700; sh: 32; makefile: 27
file content (42 lines) | stat: -rwxr-xr-x 974 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
#!/usr/bin/make -f

include /usr/share/dpkg/buildtools.mk

%:
	dh $@

override_dh_clean:
	$(MAKE) -f unixio.mak realclean
	dh_clean

override_dh_auto_build:
	$(MAKE) -f unixio.mak CC=$(CC) OPTIMIZE="$(CFLAGS) $(LDFLAGS)"

override_dh_auto_install:
	install -m 755 jzip debian/jzip/usr/games
	install -m 755 jzexe debian/jzip/usr/games
	install -m 755 ckifzs debian/jzip/usr/games
	dh_install

#
# get-orig-source
# for manual invocation only.
#

include /usr/share/dpkg/default.mk
UPSTREAM = jzip21-10oct2000.zip
ORIGDIR = jzip-$(DEB_VERSION_UPSTREAM).orig
ORIGURL = http://ifarchive.heanet.ie/if-archive/infocom/interpreters/zip/$(UPSTREAM)

get-orig-source:
	fakeroot sh -c ' \
	mkdir $(ORIGDIR) && \
	wget -O $(UPSTREAM) $(ORIGURL) && \
	cd $(ORIGDIR) && unzip ../$(UPSTREAM) && cd .. && \
	touch -r $(UPSTREAM) $(ORIGDIR) && \
	$(RM) $(UPSTREAM) && \
	BZIP2=-9 tar jcf `echo $(ORIGDIR)|sed s/-/_/`.tar.bz2 $(ORIGDIR) && \
	$(RM) -r $(ORIGDIR)'

.PHONY: get-orig-source