| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
PACKAGE_NAME=s4cmd |
| 5 |
PACKAGE_DIR=$(CURDIR)/debian/$(PACKAGE_NAME) |
| 6 |
SHARE_DIR=/usr/share/$(PACKAGE_NAME) |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with python3 --buildsystem=pybuild |
| 10 |
|
| 11 |
override_dh_auto_clean: |
| 12 |
S4CMD_PACKAGING=1 python3 setup.py clean |
| 13 |
rm -rf s4cmd.1 .pybuild build *egg-info |
| 14 |
|
| 15 |
override_dh_installman: |
| 16 |
help2man --no-discard-stderr --version-string='2.0.1' \ |
| 17 |
-n 'Super Amazon S3 command line tool' -N \ |
| 18 |
-i debian/extra-man-description.txt \ |
| 19 |
./debian/s4cmd/usr/share/s4cmd/s4cmd.py > s4cmd.1 |
| 20 |
dh_installman |
| 21 |
|
| 22 |
override_dh_auto_install: |
| 23 |
dh_bash-completion |
| 24 |
S4CMD_PACKAGING=1 python3 setup.py install --no-compile \ |
| 25 |
--root $(PACKAGE_DIR) \ |
| 26 |
--install-lib $(SHARE_DIR) \ |
| 27 |
--install-scripts $(SHARE_DIR) |