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

Guillaume Alaux guillaume at archlinux.org
Sat Jul 26 17:27:51 UTC 2014


    Date: Saturday, July 26, 2014 @ 19:27:51
  Author: guillaume
Revision: 218204

Fix conf for path of JDK and antialiasing

Modified:
  visualvm/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-07-26 16:53:19 UTC (rev 218203)
+++ PKGBUILD	2014-07-26 17:27:51 UTC (rev 218204)
@@ -1,7 +1,7 @@
 # Maintainer: Guillaume ALAUX <guillaume at archlinux.org>
 # Contributor: Kristof JOZSA <kristof.jozsa at gmail.com>
 pkgname=visualvm
-pkgver=1.3.7
+pkgver=1.3.8
 _shortver=${pkgver//\./}
 pkgrel=1
 pkgdesc='Visual tool integrating several commandline JDK tools and lightweight profiling capabilities'
@@ -12,7 +12,7 @@
 source=("https://java.net/projects/${pkgname}/downloads/download/release${_shortver}/${pkgname}_${_shortver}.zip"
         'visualvm.desktop'
         'icon.png')
-sha256sums=('b8ff7762d9f8bb940bab6ec2ec890657682adf85d833e7e89e9cc4feda717b53'
+sha256sums=('05fa81e756552a42d1150d7c32ab2186f6f736244c95022b341deaefc077d899'
             'e820807e8d78446cf156a3947d97856e24865bb0d8c957e9ce2fed309c737441'
             '452fbd85c968ec7176c5894bc4106b7e25310314d44278d807510675b6a5c864')
 
@@ -25,6 +25,11 @@
   install -d "${pkgdir}/etc/${pkgname}"
   cp -R etc/* "${pkgdir}/etc/${pkgname}"
   ln -s /etc/${pkgname} "${pkgdir}/usr/share/${pkgname}/etc"
+    # 'visualvm' shell script cannot even set his own variable 'visualvm_jdkhome'
+  sed -i \
+    -e 's|#visualvm_jdkhome="/path/to/jdk"|visualvm_jdkhome="${JAVA_HOME}"|' \
+    -e 's|visualvm_default_options="|visualvm_default_options="-J-Dawt.useSystemAAFontSettings=on |' \
+      "${pkgdir}/etc/${pkgname}/visualvm.conf"
 
   rm -rf "${pkgdir}"/usr/share/${pkgname}/profiler/lib/deployed/jdk*/{hpux*,mac,solaris*,windows*,linux-arm*}
   if [ ${CARCH} == 'i686' ]; then




More information about the arch-commits mailing list