9c30340a15e478dfa5e1c290a91cd3139bbc7adc
[sven/java-package.git] / lib / jre.sh
1
2 j2re_control() {
3     j2se_control
4     cat << EOF
5 Package: $j2se_package
6 Architecture: any
7 Depends: \${shlibs:Depends}
8 Recommends: netbase, libx11-6 | xlibs, libasound2, libgtk1.2
9 Provides: java-virtual-machine, java-runtime, java2-runtime, java${j2se_release}-runtime, java$((${j2se_release}-1))-runtime, java$((${j2se_release}-2))-runtime, java-runtime-headless, java2-runtime-headless, java${j2se_release}-runtime-headless, java$((${j2se_release}-1))-runtime-headless, java$((${j2se_release}-2))-runtime-headless, java-browser-plugin
10 Replaces: ${j2se_package}debian
11 Description: $j2se_title
12  The Java(TM) SE Runtime Environment contains the Java virtual machine,
13  runtime class libraries, and Java application launcher that are
14  necessary to run programs written in the Java progamming language
15  (this includes the Java 2 Plug-In for Netscape and Mozilla
16  browsers). It is not a development environment and doesn't contain
17  development tools such as compilers or debuggers. For development
18  tools, see the Java 2 SDK, Standard Edition.
19  .
20  This package has been automatically created with java-package ($version).
21 EOF
22 }
23
24 # build debian package
25 j2re_run() {
26     echo
27     diskfree "$j2se_required_space"
28     read_maintainer_info
29     j2se_package="$j2se_vendor-java$j2se_release-jre"
30     j2se_name="jre-$j2se_release-$j2se_vendor-$j2se_arch"
31     local target="$install_dir$jvm_base$j2se_name"
32     install -d -m 755 "$( dirname "$target" )"
33     extract_bin "$archive_path" "$j2se_expected_min_size" "$target"
34     rm -rf "$target/.systemPrefs"
35     echo "7" > "$debian_dir/compat"
36     j2se_readme > "$debian_dir/README.Debian"
37     j2se_changelog > "$debian_dir/changelog"
38     j2re_control > "$debian_dir/control"
39     j2se_copyright > "$debian_dir/copyright"
40     j2se_install_scripts
41     install -d "$target/debian"
42     j2se_info > "$target/debian/info"
43     eval "$j2se_jinfo" > "$install_dir$jvm_base.$j2se_name.jinfo"
44     j2se_build
45 }