~ubuntu-branches/ubuntu/raring/powermanga/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Gonéri Le Bouder, Cyril Brulebois, Barry deFreese
  • Date: 2008-03-19 21:32:41 UTC
  • mfrom: (1.2.4 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080319213241-sn6w3z75uppm22eq
Tags: 0.90-dfsg-1
[ Gonéri Le Bouder ]
* add desktop file, thanks Adrien Cunin (Closes: #402168)
 - powermanga.xpm moved in /usr/share/pixmaps
* call dh_desktop to run update-desktop-database

[ Cyril Brulebois ]
* Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file.

[ Barry deFreese ]
* Bump debhelper build-dep version to match compat
* Fix substvar source:Version
* Make distclean not ignore errors
* Add watch file
* Add Homepage field in control
* Remove XS- from VCS fields in control
* New Upstream Release (Closes: #447415)
  + Should now be dfsg free
  + Adds joystick support (Closes: #442322)
  + STILL NOT SURE ABOUT tlk.fnt
* Revert patches except fixing scoredir path and copyright for manpage
* Remove deprecated Encoding tag from desktop file
* Remove file extension from icon tag in desktop file
* Replace evil 'pwd' with $(CURDIR)
* Removing config.log config.status in clean target
* Convert copyright to UTF-8.
* Remove order/ dir from upstream tarball.
* Remove empty dirs from powermanga package.
* Bump Standards Version to 3.7.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
export DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
7
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
8
 
9
 
confflags = --prefix=/usr --mandir=/usr/share/man
 
9
confflags = --prefix=/usr --mandir=/usr/share/man/man6
10
10
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
11
11
  confflags += --build $(DEB_HOST_GNU_TYPE)
12
12
else
29
29
build: configure-stamp build-stamp
30
30
build-stamp:
31
31
        dh_testdir
32
 
        $(MAKE) PREFIX=`pwd`/debian/powermanga
 
32
        $(MAKE) PREFIX=$(CURDIR)/debian/powermanga
33
33
        touch build-stamp
34
34
 
35
35
clean:
36
36
        dh_testdir
37
37
        dh_testroot
38
38
        rm -f build-stamp configure-stamp
39
 
        -$(MAKE) distclean
 
39
        [ ! -f Makefile ] || [ ! -f config.status ] || $(MAKE) distclean
40
40
        QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
 
41
        rm -f config.log config.status
41
42
        dh_clean
42
43
 
43
44
install: DH_OPTIONS=
47
48
        dh_clean -k
48
49
        dh_installdirs
49
50
        # Install package
50
 
        DESTDIR=`pwd`/debian/powermanga/ $(MAKE) install
 
51
        DESTDIR=$(CURDIR)/debian/powermanga/ $(MAKE) install
51
52
        # Remove the score files
52
53
        rm -f debian/powermanga/var/games/powermanga/powermanga.hi-easy
53
54
        rm -f debian/powermanga/var/games/powermanga/powermanga.hi
54
55
        rm -f debian/powermanga/var/games/powermanga/powermanga.hi-hard
55
56
        # Move files
56
57
        mv debian/powermanga/usr/share/games/powermanga/* debian/powermanga-data/usr/share/games/powermanga
57
 
        dh_install debian/powermanga.xpm /usr/share/games/powermanga
58
58
        dh_install debian/powermanga.xpm /usr/share/pixmaps
59
59
        dh_install debian/powermanga.desktop /usr/share/applications/
60
60
        dh_install -p powermanga-data texts/*.txt texts/*.ini /usr/share/games/powermanga/texts
61
61
        ln -s powermanga-data debian/powermanga/usr/share/doc/powermanga
62
62
 
 
63
        #Remove empty dir
 
64
        rm -rf debian/powermanga/usr/share/games
 
65
 
63
66
binary-indep: build install
64
67
        dh_testdir
65
68
        dh_testroot
80
83
        dh_installmenu -a
81
84
        dh_installcron -a
82
85
        dh_installinfo -a
 
86
        dh_desktop -ppowermanga
83
87
        dh_strip -a
84
88
        dh_link -a
85
89
        dh_compress -a