File: rules

package info (click to toggle)
valinor 1.1.4-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 316 kB
  • sloc: python: 428; makefile: 24; sh: 7
file content (34 lines) | stat: -rwxr-xr-x 943 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DH_VERBOSE = 1
export PYBUILD_VERBOSE=1

export LANG=C.UTF-8
export LC_ALL=C.UTF-8

export PYBUILD_NAME=valinor
export PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/valinor/
export PYBUILD_AFTER_INSTALL=mv {destdir}/usr/bin/valinor {destdir}/usr/share/valinor/run

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_build:
	dh_auto_build
	# build custom manpage
	@echo DEB_VERSION_UPSTREAM $(DEB_VERSION_UPSTREAM)
	sed -e "s/__VERSION__/$(DEB_VERSION_UPSTREAM)/g" \
				< debian/valinor.1.md.in > debian/valinor.1.md
	pandoc debian/valinor.1.md -s -f markdown -t man -o debian/valinor.1

override_dh_installchangelogs:
	dh_installchangelogs debian/changelog.upstream.md upstream
	dh_installchangelogs

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	python3 setup.py egg_info
	PYTHONPATH=$(CURDIR) nosetests3 -s -v --where=valinor/test
endif