|
|
|
@ -11,19 +11,6 @@ fi
|
|
|
|
rm -rf ${DIST}
|
|
|
|
rm -rf ${DIST}
|
|
|
|
cp -r debian ${DIST}
|
|
|
|
cp -r debian ${DIST}
|
|
|
|
|
|
|
|
|
|
|
|
# Update for bullseye debhelper
|
|
|
|
|
|
|
|
sed -i -e 's/debhelper-compat.*/debhelper-compat (= 12),/' ${DIST}/control
|
|
|
|
|
|
|
|
# Replace execute_* hooks with old-style overrides
|
|
|
|
|
|
|
|
sed -i -e 's/^execute_after_dh_installsystemd:/override_dh_installsystemd:\n\tdh_installsystemd/' ${DIST}/rules
|
|
|
|
|
|
|
|
sed -i -e 's/^execute_before_dh_auto_install-indep:/override_dh_auto_install-indep:/' ${DIST}/rules
|
|
|
|
|
|
|
|
sed -i -e '/^\tgzip -9 < README.md/a\\n\tdh_auto_install' ${DIST}/rules
|
|
|
|
|
|
|
|
# Add dwz override
|
|
|
|
|
|
|
|
cat >> ${DIST}/rules <<'EOF'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override_dh_dwz:
|
|
|
|
|
|
|
|
# Disable, as dwz cannot cope with some of the plugins generated.
|
|
|
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if command -v wrap-and-sort &>/dev/null ; then
|
|
|
|
if command -v wrap-and-sort &>/dev/null ; then
|
|
|
|
wrap-and-sort -sat -d ${DIST}
|
|
|
|
wrap-and-sort -sat -d ${DIST}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
|