#!/usr/bin/make -f # Copyright 2009, Noah Slater # Copying and distribution of this file, with or without modification, are # permitted in any medium without royalty provided the copyright notice and this # notice are preserved. include /usr/share/dpatch/dpatch.make clean: unpatch build: patch-stamp %: dh $@ --with python2 override_dh_auto_build: override_dh_install: cp *.py debian/phenny/usr/lib/python2.7/dist-packages/phenny cp modules/*.py debian/phenny/usr/lib/python2.7/dist-packages/phenny/modules chmod -R 644 debian/phenny/usr/lib/python2.7/dist-packages/phenny/*.py chmod -R 644 debian/phenny/usr/lib/python2.7/dist-packages/phenny/modules/*.py cp phenny debian/phenny/usr/bin help2man -N -n "an extensible IRC bot written in Python" ./phenny > debian/phenny.1 # DEB_ORIG_URI = static-http://inamidst.com/phenny/ # DEB_ORIG_DIRECTORY=$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) # DEB_ORIG_FILENAME=$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz # DEB_REPOS_VERSION = $(shell echo $(DEB_UPSTREAM_VERSION) | sed -r "s/.*~hg//") # # @@ only works from source directory, see #494141 # .PHONY: get-orig-source # get-orig-source: # hg clone -r $(DEB_REPOS_VERSION) $(DEB_ORIG_URI) $(DEB_ORIG_DIRECTORY) # tar -czf $(DEB_ORIG_FILENAME) $(DEB_ORIG_DIRECTORY) --exclude .hg # rm -fr $(DEB_ORIG_DIRECTORY)