- #export DH_VERBOSE=1
- export DH_OPTIONS=--tmpdir="$install_dir"
-
- echo " dh_testdir"
- dh_testdir
- echo " dh_testroot"
- dh_testroot
- echo " dh_installchangelogs"
- dh_installchangelogs
- # Problem: dh_installchangelogs thinks this is a native package.
- echo " dh_installdocs"
- dh_installdocs
- # dh_install
- # dh_link
- # Conditionally wrapping this as not all JRE/JDKs have man directories
- if [ -e "$install_dir/$jvm_base$j2se_name/man" ]; then
- echo " dh_compress"
- dh_compress $( find "$install_dir/$jvm_base$j2se_name/man" -type f ! -name "*.gz" )
- fi
- echo " dh_fixperms"
- dh_fixperms
- echo " dh_installdeb"
- dh_installdeb
- echo " dh_shlibdeps"
- ldpath=
- for dir in $( find "$install_dir" -type f -name "*.so*" -printf "%h\n" | sort -u ); do
- if [[ -z "$ldpath" ]]; then
- ldpath="$dir"
- else
- ldpath="$ldpath:$dir"
- fi
- done
- # suppress some warnings
- dh_shlibdeps --exclude=fxavcodecplugin -l"$ldpath" 2>&1 |
- { grep -v "warning: format of \`NEEDED lib.*\.so' not recognized" >&2 || true; }
- echo " dh_gencontrol"
- dh_gencontrol
- echo " dh_md5sums"
- dh_md5sums
- echo " dh_builddeb"
- dh_builddeb --destdir="$tmp"