| 1 |
#!/usr/bin/make -f |
| 2 |
# See debhelper(7) (uncomment to enable) |
| 3 |
# output every command that modifies files on the build system. |
| 4 |
#export DH_VERBOSE = 1 |
| 5 |
|
| 6 |
export PYBUILD_NAME=icoextract |
| 7 |
|
| 8 |
# Build prerequisite files before running tests |
| 9 |
export PYBUILD_BEFORE_TEST=cp -r {dir}/tests {build_dir} && cd {build_dir}/tests && $(MAKE) -j$(DEB_BUILD_OPTION_PARALLEL) |
| 10 |
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests |
| 11 |
|
| 12 |
include /usr/share/dpkg/pkg-info.mk |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ --with python3 --buildsystem=pybuild |
| 16 |
|
| 17 |
execute_after_dh_auto_install: |
| 18 |
# Move exe-thumbnailer script into its own package |
| 19 |
install -d -m 755 debian/icoextract-thumbnailer/usr/bin |
| 20 |
mv debian/python3-icoextract/usr/bin/exe-thumbnailer debian/icoextract-thumbnailer/usr/bin |
| 21 |
|
| 22 |
# XXX: This seems wrong, why do I need to clean up build/ manually? |
| 23 |
rm -rf debian/python3-icoextract/usr/lib/python3*/dist-packages/build/ |