~mfisch/onehundredscopes/unity-community-lens-fixes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/make -f

PKGDIR=opt/extras.ubuntu.com/unity-community-lens

%:
	dh $@ --with python2

override_dh_auto_install:
	dh_auto_install -- --install-lib=/$(PKGDIR)/ --install-scripts=/$(PKGDIR)/

override_dh_python2:
	# Disabled as it installs files outside /opt
	#dh_python2 /$(PKGDIR)/

override_dh_compress:
	dh_compress
	set -e; \
		cd $(CURDIR)/debian/unity-community-lens; \
		mv usr/share/doc/unity-community-lens $(PKGDIR)/doc; \
		rmdir usr/share/doc

override_dh_installdeb:
	dh_apparmor --profile-name=opt.extras.ubuntu.com.unity-community-lens.community-lens -punity-community-lens
	dh_installdeb

override_dh_gencontrol:
	dh_gencontrol
	cp community.svg ../community.svg
	dpkg-distaddfile community.svg raw-meta-data -