Improved the detection of the JRE/JDK version (supports 2 digits Java 7 updates)...
[sven/java-package.git] / lib / j2sdk.sh
1
2 j2sdk_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, libstdc++5
9 Provides: java-virtual-machine, java-runtime, java2-runtime, java-browser-plugin, java-compiler, java2-compiler, java-runtime-headless, java2-runtime-headless, java-sdk, java2-sdk, j2sdk$j2se_release, j2re$j2se_release
10 Replaces: ${j2se_package}debian
11 Description: $j2se_title
12  The Java(TM) SE JDK is a development environment for building
13  applications, applets, and components that can be deployed on the
14  Java(TM) platform.
15  .
16  The Java(TM) SE JDK software includes tools useful for developing and
17  testing programs written in the Java programming language and running
18  on the Java platform. These tools are designed to be used from the
19  command line. Except for appletviewer, these tools do not provide a
20  graphical user interface.
21  .
22  This package has been automatically created with java-package ($version).
23 EOF
24 }
25
26 # build debian package
27 j2sdk_run() {
28     echo
29     diskfree "$j2se_required_space"
30     read_maintainer_info
31     j2se_package="$j2se_vendor-java$j2se_release-jdk"
32     j2se_name="jdk$j2se_release-$j2se_vendor"
33     local target="$install_dir$jvm_base$j2se_name"
34     install -d -m 755 "$( dirname "$target" )"
35     extract_bin "$archive_path" "$j2se_expected_min_size" "$target"
36     rm -rf "$target/.systemPrefs"
37     echo "7" > "$debian_dir/compat"
38     j2se_readme > "$debian_dir/README.Debian"
39     j2se_changelog > "$debian_dir/changelog"
40     j2sdk_control > "$debian_dir/control"
41     j2se_copyright > "$debian_dir/copyright"
42     j2se_install_scripts
43     install -d "$target/debian"
44     j2se_info > "$target/debian/info"
45     eval "$j2se_jinfo" > "$install_dir$jvm_base.$j2se_name.jinfo"
46     j2se_build
47 }