[arch-commits] Commit in openjdk6/trunk (PKGBUILD PKGBUILD.bootstrap)

andyrtr at archlinux.org andyrtr at archlinux.org
Sat Aug 2 09:42:25 EDT 2008


    Date: Saturday, August 2, 2008 @ 09:42:24
  Author: andyrtr
Revision: 7457

upgpkg: openjdk6 1.2-1

Added:
  openjdk6/trunk/PKGBUILD.bootstrap
Modified:
  openjdk6/trunk/PKGBUILD

--------------------+
 PKGBUILD           |    2 
 PKGBUILD.bootstrap |  115 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 116 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-08-02 09:49:50 UTC (rev 7456)
+++ PKGBUILD	2008-08-02 13:42:24 UTC (rev 7457)
@@ -16,7 +16,7 @@
  else _arch=i586
 fi
 depends=('gcc-libs')
-makedepends=('alsa-libs' 'libxtst' 'giflib' 'gtk2' 'nspr' 'zlib' 'freetype2' 'libjpeg' 'libx11' 'libcups' 'patch'
+makedepends=('alsa-lib' 'libxtst' 'giflib' 'gtk2' 'nspr' 'zlib' 'freetype2' 'libjpeg' 'libx11' 'libcups' 'patch'
              'xalan-java' 'xulrunner>=1.9.0.1' 'apache-ant>=1.7.0' 'autoconf' 'unzip' 'openjdk6')
 conflicts=('jdk' 'j2sdk' 'java-environment' 'j2re' 'java-runtime' 'jre' 'gcc-gcj' 'java-gcj-compat')
 provides=("jdk=6" "j2sdk" "java-environment" "jre=6" "j2re" "java-runtime")

Added: PKGBUILD.bootstrap
===================================================================
--- PKGBUILD.bootstrap	                        (rev 0)
+++ PKGBUILD.bootstrap	2008-08-02 13:42:24 UTC (rev 7457)
@@ -0,0 +1,115 @@
+# Contributor: Baptiste Daroussin <baptiste.daroussin at gmail.com>
+# Contributor: Kosenko Roman <madkite at gmail.com>
+# Contributor: mightyjaym <jm.ambrosino at free.fr>
+
+pkgname=openjdk6
+pkgver=1.2
+_date=20080801
+pkgrel=1
+pkgdesc='Free Java environment based on OpenJDK 6.0 with IcedTea6 replacing binary plugs.'
+url='http://icedtea.classpath.org'
+arch=('i686' 'x86_64')
+license=('GPL')
+
+_javaver=1.6.0
+_openjdk_version=b11
+_openjdk_date=10_jul_2008
+
+if [ "${CARCH}" = 'x86_64' ]; then
+      _arch=amd64
+ else _arch=i586
+fi
+
+depends=(java-xerces2 lesstif libungif giflib java-gcj-compat)
+depends=('gcc' 'glibc')
+makedepends=(cups libx11 freetype2 patch sed tar wget alsa-lib xalan-java 'xulrunner>=1.9' glib2 gtk2 'apache-ant>=1.7.0' libxinerama \
+	autoconf 'automake>=1.9' libjpeg libpng giflib zlib libxaw libxtst 'java-gcj-compat' 'zip')
+
+conflicts=('jdk' 'j2sdk' 'java-environment' 'j2re' 'java-runtime' 'jre' 'gcc-gcj' 'java-gcj-compat')
+provides=("jdk=6" "j2sdk" "java-environment" "jre=6" "j2re" "java-runtime")
+
+source=(http://download.java.net/openjdk/jdk6/promoted/${_openjdk_version}/openjdk-6-src-${_openjdk_version}-${_openjdk_date}.tar.gz
+	ftp://ftp.archlinux.org/other/openjdk6/icedtea6-${_date}.tar.bz2
+	fix_jdk_cmds_path.diff
+	fix_corba_cmds_path.diff
+	$pkgname.profile)
+noextract=(openjdk-6-src-${_openjdk_version}-${_openjdk_date}.tar.gz)
+#install="$pkgname.install"
+#options=('!makeflags')
+
+
+build() {
+  # for hg checkout install mercurial and
+#  mkdir ${startdir}/src/icedtea6-${_date}
+#  cd ${startdir}/src/icedtea6-${_date}
+#  hg clone http://icedtea.classpath.org/hg/icedtea6 || return 1
+#  tar -cvjf ../icedtea6-${_date}.tar.bz2 *
+#  return 1
+
+  unset JAVA_HOME
+  unset CLASSPATH
+
+  cd ${srcdir}/icedtea6
+  mkdir -p ${srcdir}/icedtea6/openjdk
+  pushd ${srcdir}/icedtea6/openjdk
+  tar -xf ${srcdir}/openjdk-6-src-${_openjdk_version}-${_openjdk_date}.tar.gz
+  popd
+
+  cp ${srcdir}/*.diff ${srcdir}/icedtea6/patches/
+  export DISTRIBUTION_PATCHES="patches/fix_jdk_cmds_path.diff patches/fix_corba_cmds_path.diff"
+
+  autoreconf # needed due to mercurial build
+
+  export ALT_PARALLEL_COMPILE_JOBS="${MAKEFLAGS/-j}"
+  export HOTSPOT_BUILD_JOBS="${ALT_PARALLEL_COMPILE_JOBS}"
+  unset MAKEFLAGS
+
+  ./configure --with-parallel-jobs=${HOTSPOT_BUILD_JOBS} \
+	--with-xalan2-jar=/usr/share/java/xalan.jar \
+	--with-gcj-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0 \
+	--with-openjdk-src-dir=${srcdir}/icedtea6-${pkgver}/openjdk \
+	--with-openjdk-src-zip=${srcdir} \
+	--with-javac \
+	--with-rhino=no
+
+  LD_PRELOAD="" make || return 1
+#  make || return 1
+  
+  mkdir -p ${pkgdir}/usr/lib/java-${_javaver}-openjdk/jre
+  mkdir -p ${pkgdir}/usr/share/man
+
+  pushd ${srcdir}/icedtea6/openjdk/control/build/linux-${_arch}/j2sdk-image
+   # Install main files.
+  cp -a bin include lib src.zip ${pkgdir}/usr/lib/java-${_javaver}-openjdk
+  cp -a jre/bin jre/lib ${pkgdir}/usr/lib/java-${_javaver}-openjdk/jre
+   # Install man pages.
+  cp -a man/man1 ${pkgdir}/usr/share/man
+   # Install demos and samples.
+  cp -a demo ${pkgdir}/usr/lib/java-${_javaver}-openjdk
+  mkdir -p sample/rmi
+  mv bin/java-rmi.cgi sample/rmi
+  cp -a sample ${pkgdir}/usr/lib/java-${_javaver}-openjdk
+  popd
+
+  # Install icons and menu entries.
+  for s in 16 24 32 48 ; do
+    install -D -p -m 644 \
+    openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png \
+    ${pkgdir}/usr/share/icons/hicolor/${s}x${s}/apps/java.png
+  done
+
+  # Install desktop files.
+  install -d -m 755 ${pkgdir}/usr/share/{applications,pixmaps}
+  cp javaws.png ${pkgdir}/usr/share/pixmaps
+  install  -m644 {javaws,jconsole,policytool}.desktop ${pkgdir}/usr/share/applications
+
+  # link the mozilla-plugin
+  mkdir -p ${pkgdir}/usr/lib/mozilla/plugins/
+  pushd $pkgdir/usr/lib/mozilla/plugins/
+  ln -v -s  /usr/lib/java-${_javaver}-openjdk/jre/lib/${_arch/i586/i386}/gcjwebplugin.so .
+  popd
+
+  # set some variables
+  install -m755 -D ${startdir}/src/openjdk6.profile ${startdir}/pkg/etc/profile.d/openjdk6.sh
+}
+




More information about the arch-commits mailing list