1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
export PYBUILD_NAME=contact_form
export PYBUILD_SYSTEM=distutils
%:
dh $@ --with python2 --buildsystem=pybuild
get-orig-source:
hg clone https://bitbucket.org/ubernostrum/django-contact-form/
set -e; \
revno=`hg tip --template "{rev}" -R django-contact-form` \
dirname=python-django-contact-form-0+hg$$revno; \
hg archive -R django-contact-form $$dirname; \
rm $$dirname/.hg*; \
tar zcf python-django-contact-form_0+hg$$revno.orig.tar.gz $$dirname; \
rm -rf django-contact-form $$dirname
|