summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules36
1 files changed, 36 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..9b9327c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,36 @@
+#!/usr/bin/make -f
+#export DH_VERBOSE=1
+
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+ 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