[pkg-fso-commits] [SCM] Moo box simulator branch, master, updated. 78e0cd6bddb45621655345920d0795df86601def
Enrico Zini
enrico at enricozini.org
Thu Nov 20 21:46:03 UTC 2008
The following commit has been merged in the master branch:
commit 78e0cd6bddb45621655345920d0795df86601def
Author: Enrico Zini <enrico at enricozini.org>
Date: Thu Nov 20 21:44:31 2008 +0000
Fix remaining lintian warnings
diff --git a/debian/changelog b/debian/changelog
index bed5a30..2d2c977 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,5 @@
openmoocow (0.1.0-1) unstable; urgency=low
* Initial release. (Closes: #505529)
- * TODO: W: openmoocow: binary-without-manpage usr/bin/openmoocow
- * TODO: W: openmoocow: zero-byte-file-in-doc-directory usr/share/doc/openmoocow/changelog.gz
- * TODO: E: openmoocow: package-section-games-but-contains-no-game
- * TODO: E: openmoocow: copyright-should-refer-to-common-license-file-for-gpl
- * TODO: W: openmoocow: desktop-entry-lacks-main-category /usr/share/applications/openmoocow.desktop
-- Enrico Zini <enrico at debian.org> Thu, 13 Nov 2008 10:42:47 +0000
diff --git a/debian/rules b/debian/rules
index b5d40ec..8303dfc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,39 @@
#!/usr/bin/make -f
-%:
- dh $@
+
+DEB_BUILDDIR=debian/openmoocow
+DESKTOPFILE=$(DEB_BUILDDIR)/usr/share/applications/openmoocow.desktop
+
+build: build-stamp
+build-stamp:
+ dh build
+ touch build-stamp
+
+clean:
+ dh clean
+
+install: build install-stamp
+install-stamp:
+ dh install --until auto_install
+ # Move the binary into /usr/games
+ install -d -m 0755 -o root -g root $(DEB_BUILDDIR)/usr/games
+ mv $(DEB_BUILDDIR)/usr/bin/openmoocow $(DEB_BUILDDIR)/usr/games/
+ rmdir $(DEB_BUILDDIR)/usr/bin
+ # Change the executable location in the .desktop file
+ # Change the category in the .desktop file
+ sed -r \
+ -e 's,^Exec=.+,Exec=/usr/games/openmoocow,' \
+ -e 's,^Categories=.+,Categories=Game;Amusement;GTK;,' \
+ -i $(DESKTOPFILE)
+ dh install --after auto_install
+ touch install-stamp
+
+binary-arch: install
+ dh binary-arch
+
+binary-indep: install
+ dh binary-indep
+
+binary: binary-arch binary-indep
gitbuild:
git-buildpackage --git-pristine-tar -us -uc -rfakeroot
--
Moo box simulator
More information about the pkg-fso-commits
mailing list