~siretart/keepassx/ubuntu

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Reinhard Tartler
  • Date: 2008-10-02 08:52:25 UTC
  • mfrom: (12.1.11 debian)
  • Revision ID: siretart@tauware.de-20081002085225-9ygy669yunim4oep
* prerelease build for ubuntu. do not upload!
* new upstream release. Closes: #492423 
* build and install translations. Closes: #475073
* add galician translation. Thanks to damufo <damufo@gmail.com> 
  Closes: #499097
* install files using dh_install instead of 'cp'
* no longer install our own .desktop file, the one provided by upstream
  is just fine, and rename manpage keepass.1 -> keepassx.1. Closes: #474455
* remove useless piece of documentation. Closes: #475126
* tighten dependency on libqt4, drop libpng3-dev dependency. Closes: #474387

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        dh_testdir
17
17
        qmake-qt4 PREFIX=/usr DEBUG=1 QMAKE_CFLAGS_DEBUG="$(CFLAGS)" \
18
18
             QMAKE_CXXFLAGS_DEBUG="$(CFLAGS)"
 
19
        lrelease-qt4 src/src.pro
19
20
        touch build-stamp
20
21
 
21
22
clean:
22
23
        dh_testdir
23
24
        dh_testroot
24
 
        rm -f build-stamp configure-stamp
25
25
        [ ! -f Makefile ] || $(MAKE) distclean
26
 
        rm -rf src/Makefile Makefile
27
 
        dh_clean
 
26
        rm -rf bin build
 
27
        dh_clean build-stamp configure-stamp
 
28
        dh_clean src/Makefile Makefile src/translations/*.qm
28
29
 
29
30
install: build
30
31
        dh_testdir
32
33
        dh_clean -k
33
34
        dh_installdirs
34
35
        make INSTALL_ROOT=$(CURDIR)/debian/keepassx install
 
36
        dh_install
35
37
        # Remove the executable attribut on png files
36
38
        chmod 644 $(CURDIR)/debian/keepassx/usr/share/keepassx/icons/*.png
37
 
        # desktop file and icon for KeePassX
38
 
        cp $(CURDIR)/debian/keepass.desktop $(CURDIR)/debian/keepassx/usr/share/applications/
39
 
        cp $(CURDIR)/debian/keepass.xpm $(CURDIR)/debian/keepassx/usr/share/pixmaps/
 
39
        # that piece of documentation is not helpfull at all, see #475126
 
40
        rm -rv ./debian/keepassx/usr/share/keepassx/doc
40
41
 
41
42
binary-indep: build install
42
43
# We have nothing to do by default.
48
49
        dh_installchangelogs changelog
49
50
        dh_installdocs
50
51
        dh_installexamples
51
 
        dh_installman debian/keepass.1
 
52
        dh_installman debian/keepassx.1
52
53
        dh_desktop
53
54
        dh_link
54
55
        dh_strip