| 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | |
| 4 | # Uncomment the line below to turn on debhelper verbose mode. |
| 5 | #export DH_VERBOSE=1 |
| 6 | |
| 7 | export PYBUILD_NAME = rednotebook |
| 8 | |
| 9 | %: |
| 10 | dh $@ --buildsystem=pybuild |
| 11 | |
| 12 | override_dh_auto_install: |
| 13 | # install into a private directory |
| 14 | python3 setup.py install --root=$(CURDIR)/debian/rednotebook \ |
| 15 | --install-lib=/usr/share/rednotebook \ |
| 16 | --install-scripts=/usr/bin \ |
| 17 | --install-data=/usr |
| 18 | # "--install-scripts=/usr/share/rednotebook" will not work here |
| 19 | # as binary name is the same as module name |
| 20 | mv $(CURDIR)/debian/rednotebook/usr/bin/rednotebook \ |
| 21 | $(CURDIR)/debian/rednotebook/usr/share/rednotebook/run.py |
| 22 | |
| 23 | override_dh_auto_test: |
| 24 | echo "Skipping tests" |