]> git.sven.stormbind.net Git - sven/java-package.git/blob - lib/jdk-doc.sh
Updated debian/README.Debian
[sven/java-package.git] / lib / jdk-doc.sh
1 j2sdk_doc_control() {
2     j2se_control
3     cat << EOF
4 Package: $j2se_package
5 Architecture: any
6 Depends: 
7 Recommends: 
8 Provides: 
9 Description: $j2se_title
10  The Java(TM) SE JDK is a development environment for building
11  applications, applets, and components that can be deployed on the
12  Java(TM) platform.
13  .
14  This package provides the official API documentation published
15  by Oracle.
16  .
17  This package has been automatically created with java-package ($version).
18 EOF
19 }
20
21 j2sdk_doc_doc-base() {
22     cat << EOF
23 Document: $j2se_package
24 Title: $j2se_title
25 Author: $maintainer_name
26 Abstract: This is the API Javadoc provided by the vendor
27 Section: Programming
28
29 Format: HTML
30 Index: /usr/share/doc/$j2se_vendor-java$j2se_release-doc/index.html
31 Files: /usr/share/doc/$j2se_vendor-java$j2se_release-doc/*.html
32
33 EOF
34 }
35
36 # build debian package
37 j2sdk_doc_run() {
38     echo
39     diskfree "$j2se_required_space"
40     read_maintainer_info
41     j2se_package="$j2se_vendor-java$j2se_release-doc"
42     j2se_name="jdk$j2se_release-$j2se_vendor-doc"
43     local target="$install_dir$javadoc_base$j2se_name"
44     install -d -m 755 "$( dirname "$target" )"
45     extract_bin "$archive_path" "$j2se_expected_min_size" "$target"
46     rm -rf "$target/.systemPrefs"
47     echo "7" > "$debian_dir/compat"
48     j2se_readme > "$debian_dir/README.Debian"
49     j2se_changelog > "$debian_dir/changelog"
50     j2sdk_doc_control > "$debian_dir/control"
51     j2se_copyright > "$debian_dir/copyright"
52     j2sdk_doc_doc-base > "$debian_dir/$j2se_package.doc-base"
53     j2se_install_scripts
54     install -d "$target/debian"
55     j2se_info > "$target/debian/info"
56     j2se_build
57 }