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
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export QT_SELECT=5
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
CURVER=$(shell dpkg-parsechangelog | grep ^Version | cut -d\ -f2 | cut -d- -f1)
SVNREV=$(shell echo $(CURVER) | awk -F'svn' '{print $$2}' )
%:
dh $@
override_dh_auto_install:
install -m755 CutyCapt $(CURDIR)/debian/cutycapt/usr/bin/cutycapt
get-orig-source:
svn checkout -r $(SVNREV) https://cutycapt.svn.sourceforge.net/svnroot/cutycapt/CutyCapt cutycapt
find cutycapt -name ".svn" | xargs -r rm -rf
perl -pi -e 's/\r\n/\n/g' cutycapt/CutyCapt.*
tar cf cutycapt_$(CURVER).orig.tar cutycapt/
gzip -9 cutycapt_$(CURVER).orig.tar
rm -rf cutycapt/
|