1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/usr/bin/make -f
# -*- makefile -*-
%:
dh $@
DESTDIR=debian/daptup
TRANSLATIONS=$(shell ls -1 po | sed 's/\..*//')
override_dh_install:
# installing translations
for translation in $(TRANSLATIONS); do \
TRANSLATE_DESTDIR=$(DESTDIR)/usr/share/locale/$${translation}/LC_MESSAGES; \
install -d -m 0755 $$TRANSLATE_DESTDIR; \
msgfmt "po/$${translation}.po" -o $$TRANSLATE_DESTDIR/daptup.mo; \
done
dh_install -i
# renaming apt hook
mv $(DESTDIR)/etc/apt/apt.conf.d/hook-for-apt $(DESTDIR)/etc/apt/apt.conf.d/11daptup
|