summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2021-04-24 17:33:08 +0200
committerDidier Raboud <odyx@debian.org>2021-04-24 17:33:08 +0200
commitb31e35cf74d88da000e46aa4c4d3ee4b1e8f6834 (patch)
tree62855dfbb889154ed9986189905769578096baf0
parent705fe8b6a62b47a36e28130506d59de6add1ec5e (diff)
Build and install translations in gettext-locales
Closes: #987457
-rwxr-xr-xdebian/rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 8eee0e9..d50deaf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,9 +26,15 @@ override_dh_auto_configure:
$(MAINTAINER_MODE) \
--enable-nls
+execute_after_dh_auto_build-indep:
+ # Build the gettext translations (#987457)
+ cd po && make update-gmo
+
override_dh_install-indep:
dh_install -i
rm -f debian/gutenprint-locales/usr/share/locale/*/*.po
+ # Make sure at least some locales are installed (#987457)
+ test -n "$$(find debian/gutenprint-locales/usr/share/locale -name gutenprint.mo)"
override_dh_installdocs:
dh_installdocs -pescputil --link-doc=libgutenprint9