Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_NAME=cpuinfo
4 export PYBUILD_DEST_DIR_python3=debian/python3-$(PYBUILD_NAME)
5 export PYBUILD_DEST_DIR_APP=debian/py-cpuinfo
6 ifeq ($(PYBUILD_AUTOPKGTEST),1)
7 # Set things up so that test_cli uses the installed packages.
8 export PYBUILD_BEFORE_TEST=\
9 mkdir -p {build_dir}/cpuinfo && \
10 ln -s /usr/bin/py-cpuinfo {build_dir}/cpuinfo/cpuinfo.py
11 export PYBUILD_AFTER_TEST=rm -rf {build_dir}/cpuinfo
12 endif
13
14 %:
15 dh $@ --buildsystem=pybuild
16
17 override_dh_auto_install:
18 dh_auto_install
19 # Move the python3 application to the application package.
20 mkdir -p $(PYBUILD_DEST_DIR_APP)/usr/bin
21 mv $(PYBUILD_DEST_DIR_python3)/usr/bin/cpuinfo $(PYBUILD_DEST_DIR_APP)/usr/bin/py-cpuinfo