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