[jstest-gtk] 04/08: Rework debian/rules in simplified dh style.
Stephen Kitt
skitt at moszumanska.debian.org
Wed Nov 11 11:13:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
skitt pushed a commit to branch master
in repository jstest-gtk.
commit ce559d5573206a72a464a281c56cb3d8df3bc4ec
Author: Stephen Kitt <steve at sk2.org>
Date: Tue Nov 10 08:52:57 2015 +0100
Rework debian/rules in simplified dh style.
---
debian/changelog | 1 +
debian/copyright | 10 +++------
debian/jstest-gtk.links | 1 +
debian/jstest-gtk.manpages | 1 +
debian/rules | 53 +++++++---------------------------------------
5 files changed, 14 insertions(+), 52 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 21aebeb..7a0585b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ jstest-gtk (0.1.1~git20140501-2) UNRELEASED; urgency=medium
* Fix flags-from-env.patch so the package builds again.
* Refresh patches.
* Upgrade to debhelper compatibility level 9.
+ * Rework debian/rules in simplified dh style.
-- Stephen Kitt <skitt at debian.org> Mon, 09 Nov 2015 22:51:45 +0100
diff --git a/debian/copyright b/debian/copyright
index 825a0de..0575464 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -10,7 +10,7 @@ License: GPL-3+
Files: debian/*
Copyright: 2009-2011 Miriam Ruiz <little_miry at yahoo.es>
- 2011-2014 Stephen Kitt <skitt at debian.org>
+ 2011-2015 Stephen Kitt <skitt at debian.org>
License: GPL-3+
License: GPL-3+
@@ -19,9 +19,5 @@ License: GPL-3+
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
.
- On Debian systems, the complete text of the latest version of the GNU
- General Public License can be found in `/usr/share/common-licenses/GPL'.
- .
- The complete text of version 3 of the GNU General Public License can be
- found in `/usr/share/common-licenses/GPL-3'.
-
+ On Debian systems, the complete text of version 3 of the GNU General
+ Public License can be found in `/usr/share/common-licenses/GPL-3'.
diff --git a/debian/jstest-gtk.links b/debian/jstest-gtk.links
new file mode 100644
index 0000000..a4b6e7c
--- /dev/null
+++ b/debian/jstest-gtk.links
@@ -0,0 +1 @@
+usr/share/jstest-gtk/data/generic.png usr/share/pixmaps/jstest-gtk.png
diff --git a/debian/jstest-gtk.manpages b/debian/jstest-gtk.manpages
new file mode 100644
index 0000000..b4ef8eb
--- /dev/null
+++ b/debian/jstest-gtk.manpages
@@ -0,0 +1 @@
+debian/jstest-gtk.1
diff --git a/debian/rules b/debian/rules
index 48b8cda..cd0e713 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,57 +12,20 @@ LDFLAGS := $(shell DEB_LDFLAGS_MAINT_APPEND="-Wl,-z,defs -Wl,--as-needed" dpkg-b
LINKFLAGS = -Wl$(shell for arg in $(subst -Wl,,$(LDFLAGS)); do echo -n $$arg; done)
export CPPFLAGS CFLAGS CXXFLAGS LINKFLAGS
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp:
- dh_testdir
+%:
+ dh $@
+
+override_dh_auto_build:
scons \
prefix=/usr \
resources_dir=/usr/share/jstest-gtk \
lib_dir="$(CURDIR)"
- touch $@
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp config-stamp
+override_dh_auto_clean:
-scons -c
- rm -f config.log options.cache
- rm -f rm .sconsign.dblite
- rm -rf .sconf_temp build
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_prep
- dh_installdirs
-
-# Build architecture-independent files here.
-binary-indep: install
-# Build architecture-dependent files here.
-binary-arch: install
- dh_testdir
- dh_testroot
- dh_installchangelogs NEWS
- dh_installdocs
- dh_installexamples
- dh_install
- cp data/generic.png debian/jstest-gtk/usr/share/pixmaps/jstest-gtk.png
- dh_installmenu
- dh_installman debian/jstest-gtk.1
- dh_link
+override_dh_strip:
dh_strip --dbg-package=jstest-gtk-dbg
- dh_compress
- dh_fixperms
- [ ! -e /usr/bin/dh_buildinfo ] || dh_buildinfo
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-binary: binary-indep binary-arch
-.PHONY: config build-indep build-arch build clean binary-indep binary-arch binary install
+override_dh_installchangelogs:
+ dh_installchangelogs NEWS
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/jstest-gtk.git
More information about the Pkg-games-commits
mailing list