X-Git-Url: http://git.sven.stormbind.net/?p=sven%2Fjava-package.git;a=blobdiff_plain;f=lib%2Fjavase.sh;h=10f2f5e2684878d9fa10597bcb2d392400bde6f0;hp=a98a915fa4d395ed9436ee6927783875f426c7c9;hb=20c3538c03a7f4182a001ac8319f516466df7219;hpb=1c05d6f0e114cff3d49a4a32348a0c154012ac1d diff --git a/lib/javase.sh b/lib/javase.sh index a98a915..10f2f5e 100644 --- a/lib/javase.sh +++ b/lib/javase.sh @@ -3,7 +3,7 @@ j2se_readme() { Package for $j2se_title --- -This package has been automatically created with java-package ($version). +This package has been automatically created with java-package ($version). All files from the original distribution should have been installed in the directory $jvm_base$j2se_name. Please take a look at this directory for further information. @@ -28,8 +28,8 @@ Source: $j2se_package Section: non-free/devel Priority: optional Maintainer: $maintainer_name <$maintainer_email> -Build-Depends: debhelper (>= 4.0.0) -Standards-Version: 3.7.2 +Build-Depends: debhelper (>= 9) +Standards-Version: 3.9.5 EOF } @@ -45,7 +45,7 @@ subdirectories. ---------------------------------------------------------------------- EOF - ( + ( cd "$install_dir" find * -type f -iname copyright | while read file; do @@ -65,6 +65,15 @@ EOF ) } +j2se_rules() { + cat << EOF +#!/usr/bin/make -f + +%: + dh \$@ +EOF +} + j2se_install_scripts() { cat > "$debian_dir/postinst" << EOF #!/bin/bash @@ -122,7 +131,7 @@ fi exit 0 EOF chmod 755 "$debian_dir/postinst" - + cat > "$debian_dir/prerm" << EOF #!/bin/bash @@ -186,9 +195,8 @@ jinfos() { j2se_build() { cd "$tmp" echo "Create debian package:" - + #export DH_VERBOSE=1 - export DH_COMPAT=7 export DH_OPTIONS=--tmpdir="$install_dir" echo " dh_testdir" @@ -221,7 +229,7 @@ j2se_build() { fi done # suppress some warnings - dh_shlibdeps -l"$ldpath" 2>&1 | + 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 @@ -232,7 +240,7 @@ j2se_build() { local deb_filename="$( echo "${j2se_package}_"*.deb )" echo " copy $deb_filename into directory $working_dir/" cp "$deb_filename" "$working_dir/" - if [ -n "$genchanges" ]; then + if [ -n "$genchanges" ]; then echo " dpkg-genchanges" local changes_filename="${deb_filename%.deb}.changes" dpkg-genchanges -b -u. > "$changes_filename" @@ -241,8 +249,10 @@ j2se_build() { fi cat << EOF -The Debian package has been created in the current directory. You can -install the package as root (e.g. dpkg -i $deb_filename). +The Debian package has been created in the current directory. +You can install the package as root with: + + dpkg -i $deb_filename EOF }