#!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS = hardening=+all include /usr/share/dpkg/pkg-info.mk %: dh $@ DIR := $(DEB_SOURCE)-$(DEB_VERSION_UPSTREAM) DATE := $(shell echo $(DEB_VERSION_UPSTREAM) | 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)_$(DEB_VERSION_UPSTREAM).orig.tar.bz2