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

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Michael Hall
  • Date: 2012-02-08 20:14:39 UTC
  • Revision ID: mhall119@ubuntu.com-20120208201439-25j6k09d3t7800ps
Add packaging files

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
PKGDIR=opt/extras.ubuntu.com/unity-community-lens
 
4
 
 
5
%:
 
6
        dh $@ --with python2
 
7
 
 
8
override_dh_auto_install:
 
9
        dh_auto_install -- --install-lib=/$(PKGDIR)/ --install-scripts=/$(PKGDIR)/
 
10
 
 
11
override_dh_python2:
 
12
        # Disabled as it installs files outside /opt
 
13
        #dh_python2 /$(PKGDIR)/
 
14
 
 
15
override_dh_compress:
 
16
        dh_compress
 
17
        set -e; \
 
18
                cd $(CURDIR)/debian/unity-community-lens; \
 
19
                mv usr/share/doc/unity-community-lens $(PKGDIR)/doc; \
 
20
                rmdir usr/share/doc
 
21
 
 
22
override_dh_installdeb:
 
23
        dh_apparmor --profile-name=opt.extras.ubuntu.com.unity-community-lens.community-lens -punity-community-lens
 
24
        dh_installdeb
 
25
 
 
26
override_dh_gencontrol:
 
27
        dh_gencontrol
 
28
        cp community.svg ../community.svg
 
29
        dpkg-distaddfile community.svg raw-meta-data -