]> git.sven.stormbind.net Git - sven/java-package.git/blobdiff - lib/javase.sh
Add a debian/rules file to the generated source package.
[sven/java-package.git] / lib / javase.sh
index 8e0d0f5e2fb579595f3c494ee3481ed5198ea869..10f2f5e2684878d9fa10597bcb2d392400bde6f0 100644 (file)
@@ -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"
@@ -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
 }