~openlp-core/openlp/debian-package

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Raoul Snyman
  • Date: 2012-05-02 19:54:48 UTC
  • Revision ID: raoul.snyman@saturnlaboratories.co.za-20120502195448-h9hklu7ty8n4q3uo
Initial code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
%:
 
4
        dh $@ --with python2
 
5
 
 
6
override_dh_auto_build:
 
7
        dh_auto_build
 
8
        mkdir -p resources/i18n/qm
 
9
        set -e; \
 
10
        for TSFILE in resources/i18n/*.ts; do \
 
11
                lrelease-qt4 $$TSFILE -qm resources/i18n/qm/`basename $$TSFILE .ts`.qm; \
 
12
        done
 
13
 
 
14
override_dh_auto_install:
 
15
        dh_auto_install -- --install-lib /usr/share/openlp \
 
16
                           --install-scripts /usr/share/openlp
 
17
 
 
18
override_dh_install:
 
19
        dh_install
 
20
        set -e; \
 
21
        for SIZE in 16x16 32x32 48x48 64x64 128x128 256x256; do \
 
22
                mkdir -p debian/openlp/usr/share/icons/hicolor/$$SIZE/apps && \
 
23
                cp resources/images/openlp-logo-$$SIZE.png debian/openlp/usr/share/icons/hicolor/$$SIZE/apps/openlp.png; \
 
24
        done
 
25
        mkdir -p debian/openlp/usr/share/icons/hicolor/scalable/apps
 
26
        cp resources/images/openlp-logo.svg     debian/openlp/usr/share/icons/hicolor/scalable/apps/openlp.svg