| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
export PYBUILD_NAME=pyocd |
| 7 |
|
| 8 |
|
| 9 |
export http_proxy = http://127.0.9.1:9 |
| 10 |
|
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ --buildsystem=pybuild |
| 14 |
|
| 15 |
override_dh_auto_build: |
| 16 |
python3 setup.py build |
| 17 |
rst2man debian/pyocd-gdbserver.rst > debian/pyocd-gdbserver.1 |
| 18 |
rst2man debian/pyocd-tool.rst > debian/pyocd-tool.1 |
| 19 |
rst2man debian/pyocd-flashtool.rst > debian/pyocd-flashtool.1 |
| 20 |
|
| 21 |
override_dh_auto_install: |
| 22 |
python3 setup.py install --root=$(CURDIR)/debian/python3-pyocd/ --install-layout=deb |
| 23 |
echo "version = '0.13.1'" > $(CURDIR)/debian/python3-pyocd/usr/lib/python3/dist-packages/pyocd/_version.py |
| 24 |
dh_installman -ppython3-pyocd debian/pyocd-gdbserver.1 |
| 25 |
dh_installman -ppython3-pyocd debian/pyocd-tool.1 |
| 26 |
dh_installman -ppython3-pyocd debian/pyocd-flashtool.1 |
| 27 |
|
| 28 |
execute_after_dh_auto_clean: |
| 29 |
${RM} -r .eggs pyocd/_version.py |