diff options
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d408a1e --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +DISTRIBUTION = $(shell lsb_release -i | cut -f2 -d':' | tr -d '\t') +LDFLAGS+=-Wl,--as-needed + +%: + dh $@ --with scour + +# Fixes FTBFS +override_dh_auto_test: + +# Autoreconf due to 01_lpi.patch +override_dh_auto_configure: + [ -e gnome-doc-utils.make ] || \ + ln -s /usr/share/gnome-doc-utils/gnome-doc-utils.make + autoreconf -f -i -s + dh_auto_configure + +override_dh_auto_build: + cd po; intltool-update -p + dh_auto_build + +override_dh_install: + dh_install +ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) + dh_install -psimple-scan debian/source_simple-scan.py \ + usr/share/apport/package-hooks/ +endif |