File: rules

package info (click to toggle)
morse2ascii 0.2+dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 368 kB
  • ctags: 231
  • sloc: ansic: 4,019; makefile: 46
file content (24 lines) | stat: -rwxr-xr-x 864 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
#!/usr/bin/make -f

DEB_VERSION:=$(shell dpkg-parsechangelog -n1 | sed -n '/^Version: /s///p')
DEB_UPSTREAM_VERSION:=$(shell DEB_VERSION=${DEB_VERSION}; echo $${DEB_VERSION%-*})

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ 

get-orig-source:
	rm -rf debian/tmp; \
		mkdir -p debian/tmp/morse2ascii-$(DEB_UPSTREAM_VERSION).orig
	cd debian/tmp; \
		wget http://aluigi.altervista.org/mytoolz/morse2ascii.zip
	cd debian/tmp; \
		echo "5a9fe366f1de016ecaf37bea02237f22aacd365a968a28267c98fc626664918ca024bc8b56818fed2695036d5b8d7600ad9d1b5920178353dd46e5a49efa85bb *morse2ascii.zip" \
		| sha512sum -c
	cd debian/tmp/morse2ascii-$(DEB_UPSTREAM_VERSION).orig; \
		unzip ../morse2ascii.zip; rm morse2ascii.exe
	cd debian/tmp; \
		tar cvJf ../../morse2ascii_$(DEB_UPSTREAM_VERSION).orig.tar.xz \
		morse2ascii-$(DEB_UPSTREAM_VERSION).orig/
	rm -rf debian/tmp