Commit e4938c39 authored by Andreas Tille's avatar Andreas Tille

d/rules: Short dh

parent f020779d
......@@ -5,6 +5,7 @@ cycle (0.3.1-13) UNRELEASED; urgency=medium
* Take over to Debian Med team Git
* debhelper 11
* Remove old menu file since there is a desktop file
* d/rules: Short dh
-- Andreas Tille <tille@debian.org> Fri, 02 Feb 2018 16:45:51 +0100
......
......@@ -3,53 +3,23 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build-indep: build-stamp
%:
dh $@ --with python2
build-stamp:
dh_testdir
python setup.py build
override_dh_auto_build:
dh_auto_build
cd debian/msg; make
touch build-stamp
build-arch:
build: build-indep build-arch
clean:
dh_testdir
dh_testroot
override_dh_clean:
cd debian/msg; make clean
rm -rf build
rm -f build-stamp
dh_clean
install: build
dh_testdir
dh_testroot
dh_prep
dh_installdirs
cd debian/msg; make install DESTDIR=../cycle/usr/share/locale/
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs CHANGELOG
dh_installdocs
dh_installexamples
override_dh_install:
dh_install
dh_installmenu
dh_installman
dh_link
dh_compress
dh_fixperms
[ ! -e /usr/bin/dh_buildinfo ] || dh_buildinfo
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch:
binary: binary-indep
.PHONY: build clean binary-indep binary install
cd debian/msg; make install DESTDIR=../cycle/usr/share/locale/
override_dh_python2:
dh_python2
# the code is installed to /usr/share/cycle - no idea why there is a copy of the main program in /usr/lib/python2.7
rm -rf debian/*/usr/lib/python*
find debian -name "lib" -type d -empty | xargs rmdir
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment