File: rules

package info (click to toggle)
daptup 0.12.7%2Bnmu1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 204 kB
  • sloc: perl: 402; makefile: 12; sh: 11
file content (22 lines) | stat: -rwxr-xr-x 534 bytes parent folder | download | duplicates (3)
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