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 28
|
#!/usr/bin/make -f
export DH_VERBOSE = 1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# This prevents meson from installing python files in /usr/local/.
export DEB_PYTHON_INSTALL_LAYOUT=deb
include /usr/share/dpkg/default.mk
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --with python3
execute_after_dh_install:
sed --in-place 's:^[#][!]/usr/bin/python:#!/usr/bin/python3:' \
debian/python3-dleyna/usr/lib/python3/dist-packages/dLeyna/download_sync_controller.py
execute_before_dh_compress:
find debian/python3-dleyna -name '*.py' -ls -exec \
sed --in-place 's:^[#][!]/usr/bin/python$$:#!/usr/bin/python3:' '{}' '+'
override_dh_makeshlibs:
dh_makeshlibs \
-Xusr/lib/$(DEB_HOST_MULTIARCH)/dleyna/ \
-Xusr/lib/$(DEB_HOST_MULTIARCH)/dleyna-1.0/ \
-Xusr/lib/$(DEB_HOST_MULTIARCH)/dleyna-server/ \
-- -c4
|