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 26 27 28 29
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
export PYBUILD_NAME=l20n
export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir}; cp -r {dir}/debian/l20n-syntax-fixtures {build_dir}/tests/
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests
%:
dh $@ --with python2,python3 --buildsystem pybuild
override_dh_clean:
# upstream contains valid files that end in .orig
dh_clean --exclude orig
override_dh_installexamples:
dh_installexamples
chmod -R a-x debian/*/usr/share/doc/*/examples/tools
# For the maintainer -- fetch the test data that upstream treats as a git
# submodule.
get-test-fixtures:
rm -rf debian/l20n-syntax-fixtures master.zip
wget https://github.com/l20n/l20n-syntax-fixtures/archive/master.zip
(cd debian && unzip ../master.zip)
mv debian/l20n-syntax-fixtures-master debian/l20n-syntax-fixtures
rm master.zip
|