aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
blob: f98cf93913979a7c769ca9bfe8ba1996e0fcda91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

LDFLAGS += -Wl,-z,defs -Wl,--as-needed

%:
	dh $@ --with quilt,autoreconf

override_dh_autoreconf:
	NOCONFIGURE=1 dh_autoreconf ./autogen.sh

override_dh_auto_configure:
	dh_auto_configure -- --disable-static

override_dh_install:
	find debian/indicator-datetime -name \*.la -delete
	find debian/indicator-datetime -name \*.a -delete
	cd po; intltool-update --pot --verbose
	dh_install --fail-missing
	# Language packs
	for d in $$(find debian/indicator-datetime -type f \( -name "*.desktop" -o -name "*.directory" \) ); do \
		sed -ri '/^(Name|GenericName|Comment|X-GNOME-FullName)\[/d' $$d; \
		echo "X-Ubuntu-Gettext-Domain=indicator-datetime" >> $$d; \
       	done;