Commit b95471b3 authored by Alexandre Mestiashvili's avatar Alexandre Mestiashvili
Browse files

Install all to /usr/lib/pycorrfit, move and simlink pycorrfit script

parent a08d226b
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
export DEB_BUILD_MAINT_OPTIONS=hardening=+BINDNOW
export PYBUILD_NAME=pycorrfit
export PYBUILD_TEST_PYTEST=0
export PYBUILD_INSTALL_ARGS_python3=--install-lib=/usr/lib
export PYBUILD_INSTALL_ARGS_python3=--install-lib=/usr/lib/${PYBUILD_NAME}
# see https://wiki.debian.org/ReproducibleBuilds/TimestampsInPDFGeneratedByLaTeX
DEB_DATE_RFC_2822 := $(shell dpkg-parsechangelog -S date)
DEB_DATE_RFC_3339 := $(shell date -u "--rfc-3339=seconds" -d "$(DEB_DATE_RFC_2822)")
@@ -37,11 +37,12 @@ override_dh_auto_build:
	dh_auto_build

override_dh_install:
	dh_install
	find debian/pycorrfit -name '*.py[co]' | xargs -r rm -f
	find debian/pycorrfit -name '__pycache__' | xargs -r rm -rf
	rm -f debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/readfiles/read_pt3_scripts/README
	find $(CURDIR)/debian/$() -name LICENSE -delete
	dh_install -X__pycache__ -X.*pyc
	mv $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/pycorrfit \
           $(CURDIR)/debian/$(DEB_SOURCE)/usr/lib/$(DEB_SOURCE)/pycorrfit_run
	find $(CURDIR) -print
	cd $(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/; \
        ln -s ../lib/$(DEB_SOURCE)/pycorrfit_run pycorrfit; cd -
	mv debian/pycorrfit.xpm \
		debian/$(DEB_SOURCE)/usr/share/pixmaps
	chmod -R 644 debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples/external_model_functions/