File: rules

package info (click to toggle)
refnx 0.1.53-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,848 kB
  • sloc: python: 36,198; cpp: 1,015; ansic: 185; makefile: 181; sh: 129; lisp: 89; xml: 34
file content (25 lines) | stat: -rwxr-xr-x 828 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export PYBUILD_NAME=refnx
export FORCE_SOURCE_DATE=1

pyversion=$(shell py3versions -d -v)

export PYBUILD_TEST_CUSTOM = 1
export PYBUILD_TEST_ARGS = xvfb-run -a python{version} -m pytest -v -ra


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

execute_after_dh_clean:
	make -C paper clean

execute_after_dh_auto_build:
	make -C paper

execute_after_dh_auto_install:
	mv $(CURDIR)/debian/python3-refnx/usr/bin/refnx $(CURDIR)/debian/python3-refnx/usr/lib/python$(pyversion)/dist-packages/refnx/refnx-gui
	cp $(CURDIR)/debian/refnx-wrapper $(CURDIR)/debian/python3-refnx/usr/bin/refnx
	mkdir -p $(CURDIR)/debian/python3-refnx/usr/share/icons/hicolor/scalable/apps/
	cp ./refnx/reflect/_app/icons/scatteringevent.svg $(CURDIR)/debian/python3-refnx/usr/share/icons/hicolor/scalable/apps/refnx.svg