aboutsummaryrefslogtreecommitdiff
path: root/debian/rules
blob: 8534cd9084129c8903bd10d7b5951f8157252f2d (plain)
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

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk

DEB_CONFIGURE_EXTRA_FLAGS = --disable-static

CFLAGS += -Wno-error=deprecated-declarations
LDFLAGS += -Wl,-z,defs -Wl,--as-needed

common-install-arch::
	find debian/indicator-session -name \*.la -delete
	find debian/indicator-session -name \*.a -delete
	find debian/indicator-session -name classic-desktop.sh | xargs chmod +x
	cd po; intltool-update --pot --verbose
	# Language packs
	for d in $$(find debian/indicator-session -type f \( -name "*.desktop" -o -name "*.directory" \) ); do \
		sed -ri '/^(Name|GenericName|Comment|X-GNOME-FullName)\[/d' $$d; \
		echo "X-Ubuntu-Gettext-Domain=indicator-session" >> $$d; \
	done;