diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d6fe262 --- /dev/null +++ b/debian/rules @@ -0,0 +1,32 @@ +#!/usr/bin/make -f + +%: + dh $@ --with autotools_dev + +override_dh_auto_configure: + dh_auto_configure -- --enable-gimp + +override_dh_auto_clean: + dh_auto_clean + + rm -f config.sub config.guess + rm -f xsane.spec include/config.h + rm -f po/*.gmo + +override_dh_auto_install: + dh_auto_install + + # remove outdated/useless documentation + rm -f debian/tmp/usr/share/sane/xsane/doc/sane-backends-doc.html + rm -f debian/tmp/usr/share/sane/xsane/doc/sane-pnm-doc.html + +override_dh_install: + dh_install + + install -m 0644 src/xsane-32x32.xpm \ + debian/xsane/usr/share/pixmaps/xsane.xpm + install -m 0644 src/xsane-48x48.png \ + debian/xsane/usr/share/pixmaps/xsane.png + +override_dh_installchangelogs: + dh_installchangelogs xsane.CHANGES |