File: rules

package info (click to toggle)
portsmf 0.1~svn20101010-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 1,000 kB
  • sloc: cpp: 6,109; sh: 994; makefile: 39
file content (17 lines) | stat: -rwxr-xr-x 641 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --with autoreconf

DEB_SOURCE := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: //p' | sed 's/-[^-]*$$//')
DIR := $(DEB_SOURCE)-$(UPSTREAM_VERSION)
DATE := $(shell echo $(UPSTREAM_VERSION) | sed 's/^.*svn//')

get-orig-source:
	rm -rf /tmp/$(DIR)
	svn export -r {$(DATE)} https://portmedia.svn.sourceforge.net/svnroot/portmedia/portsmf/trunk /tmp/$(DIR)
	fromdos $(shell find /tmp/$(DIR) -type f)
	tar -c -C /tmp $(DIR) | bzip2 -c9 > ../$(DEB_SOURCE)_$(UPSTREAM_VERSION).orig.tar.bz2