[arch-commits] Commit in java7-openjdk/trunk (PKGBUILD)

Guillaume Alaux guillaume at archlinux.org
Thu Dec 6 09:07:12 UTC 2012


    Date: Thursday, December 6, 2012 @ 04:07:11
  Author: guillaume
Revision: 172894

Created package '-doc' for FS#32887 and removed dirs 'demo' and 'sample' from JDK

Modified:
  java7-openjdk/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-12-06 08:23:58 UTC (rev 172893)
+++ PKGBUILD	2012-12-06 09:07:11 UTC (rev 172894)
@@ -3,8 +3,8 @@
 # Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
 # Contributor: Jan de Groot <jgc at archlinux.org>
 
-pkgname=('jre7-openjdk-headless' 'jre7-openjdk' 'jdk7-openjdk' 'openjdk7-src') 
- # ToDo -demo -doc packages, see Debian file lists http://packages.debian.org/source/wheezy/openjdk-7
+pkgname=('jre7-openjdk-headless' 'jre7-openjdk' 'jdk7-openjdk'
+         'openjdk7-src' 'openjdk7-doc')
 pkgbase=java7-openjdk
 _java_ver=7
 _updatever=u9
@@ -296,7 +296,7 @@
   # Main files
   install -m755 -d ${pkgdir}/${_jvmdir}/
 
-  cp -a demo include lib sample ${pkgdir}/${_jvmdir}
+  cp -a include lib ${pkgdir}/${_jvmdir}
 
   # 'bin' files
   pushd bin
@@ -340,3 +340,12 @@
   install -D ${srcdir}/icedtea-${_icedtea_ver}/openjdk.build/j2sdk-image/src.zip \
              ${pkgdir}/${_jvmdir}/src.zip
 }
+
+package_openjdk7-doc() {
+  pkgdesc="Free Java environment based on OpenJDK 7.0 with IcedTea7 replacing binary plugs - documentation"
+
+  install -m755 -d ${pkgdir}/usr/share/doc/openjdk7-doc
+  for i in ${srcdir}/icedtea-${_icedtea_ver}/openjdk.build/docs/*; do
+    cp -a $i ${pkgdir}/usr/share/doc/openjdk7-doc/
+  done
+}




More information about the arch-commits mailing list