[adonthell-data] 31/60: Simplify debian/rules.
Markus Koschany
apo at moszumanska.debian.org
Tue Jul 12 23:23:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
apo pushed a commit to branch master
in repository adonthell-data.
commit cb427b8203b38d52b796a2062dfb7617d1ca1de4
Author: Markus Koschany <apo at debian.org>
Date: Tue Jul 12 15:25:20 2016 +0200
Simplify debian/rules.
---
debian/rules | 56 +++++++++++---------------------------------------------
1 file changed, 11 insertions(+), 45 deletions(-)
diff --git a/debian/rules b/debian/rules
index 4fed481..a887cd5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,59 +1,25 @@
#!/usr/bin/make -f
#export DH_VERBOSE=1
-DPKG_EXPORT_BUILDFLAGS = 1
-include /usr/share/dpkg/buildflags.mk
-
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-INSTALL = /usr/bin/install -c
-INSTALL_PROGRAM = ${INSTALL} -p -o root -g root -m 755
-PYVERSION=$(shell pyversions -d -v)
-
-#ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-# CFLAGS += -g
-#endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
- INSTALL_PROGRAM += -s
-endif
-
%:
- dh $@ --with python2
+ dh $@ --with python3
override_dh_auto_configure:
- -test -r /usr/share/misc/config.sub && \
- cp -f /usr/share/misc/config.sub config.sub
- -test -r /usr/share/misc/config.guess && \
- cp -f /usr/share/misc/config.guess config.guess
- ./configure --host=$(DEB_HOST_GNU_TYPE) \
- --build=$(DEB_BUILD_GNU_TYPE) \
- --prefix=/usr \
- --mandir=\$${prefix}/share/man \
- --with-data-dir=\$${prefix}/share/games/adonthell \
- --with-adonthell-binary=/usr/games/adonthell \
- --bindir=\$${prefix}/games
+ dh_auto_configure -- \
+ --prefix=/usr \
+ --mandir=\$${prefix}/share/man \
+ --with-data-dir=\$${prefix}/share/games/adonthell \
+ --with-adonthell-binary=/usr/games/adonthell \
+ --bindir=\$${prefix}/games
-override_dh_auto_build:
- $(MAKE) wastesedge.desktop
+#override_dh_auto_build:
+# $(MAKE) wastesedge.desktop
override_dh_auto_install:
- $(MAKE) install DESTDIR="$(CURDIR)/debian/adonthell-data" \
- INSTALL_PROGRAM="$(INSTALL_PROGRAM)"
-# gamedatadir="$(CURDIR)/debian/adonthell-data/usr/share/games/adonthell-data"
+ dh_auto_install -- \
+ DESTDIR="$(CURDIR)/debian/adonthell-data" \
mkdir -p $(CURDIR)/debian/adonthell-data/usr/share/applications
install -m 644 debian/adonthell.desktop $(CURDIR)/debian/adonthell-data/usr/share/applications/adonthell-data.desktop
# Remove empty directories
find . -type d -empty -delete
-override_dh_clean:
- [ ! -f Makefile ] || $(MAKE) distclean
-
- -rm -f config.status
- -rm -f `find . -name "*~"`
- -rm -f `find . -name "*.pyc"`
- -rm -f po/*.gmo
- -rm -f config.sub config.guess
- find $(CURDIR)/debian -type d -empty -delete
-
- dh_clean
-
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/adonthell-data.git
More information about the Pkg-games-commits
mailing list