#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --no-parallel get-orig-source: uscan --noconf --verbose --rename --force-download \ --download-current-version unpack-orig-source: for f in *; do \ if [ -e $${f} ] && [ $${f} != debian ]; then \ rm -Rf $${f}; \ fi; \ done set -e; \ source=$$(dpkg-parsechangelog | sed -n 's/^Source: //p'); \ version=$$(dpkg-parsechangelog | \ sed -n 's/^Version: \([^-]*\).*$$/\1/p'); \ tar -xJf ../$${source}_$${version}.orig.tar.xz; \ mv $${source}-$${version}/* .; \ rmdir $${source}-$${version}/