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

Santiago Torres-Arias sangy at archlinux.org
Sun Jan 5 00:09:42 UTC 2020


    Date: Sunday, January 5, 2020 @ 00:09:41
  Author: sangy
Revision: 548521

upgpkg: netbeans 11.2-2

fix FS#64205 and FS#64423

Modified:
  netbeans/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-04 23:17:52 UTC (rev 548520)
+++ PKGBUILD	2020-01-05 00:09:41 UTC (rev 548521)
@@ -5,14 +5,14 @@
 
 pkgname=netbeans
 pkgver=11.2
-pkgrel=1
+pkgrel=2
 pkgdesc='IDE for Java, HTML5, PHP, Groovy, C and C++'
 arch=('any')
 url='https://netbeans.apache.org/'
 license=('Apache')
 # classpath is not needed, see FS#38567 (Oracle JDK does not need atk either)
-depends=('ttf-font')
-makedepends=('ant' 'java-environment=8' 'php' 'groovy')
+depends=('ttf-font' 'which')
+makedepends=('ant' 'java-environment=8' 'php' 'groovy' 'imagemagick')
 optdepends=('php: for developing programs in php'
             'groovy: for developing programs in groovy'
             'lib32-glibc')
@@ -74,10 +74,13 @@
   install -Dm644 "netbeans."* -t "${pkgdir}/usr/etc/"
 
   # Desktop shortcut and icon
+  # FIXME: unfortunately, we need to convert the high-res ico file to the 
+  # target png, as the current one is quite blurry and low-res...
+  convert "nb/ide.launcher/windows/${pkgname}.ico[4]" "${pkgname}.png"
   install -Dm644 "nbbuild/packaging/netbeans_snap/snap/gui/$pkgname.desktop" \
     "${pkgdir}/usr/share/applications/${pkgname}.desktop"
-  sed -i "s/Icon=.*/Icon=\/usr\/share\/pixmaps\/${pkgname}.png/" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
-  install -Dm644 "nbbuild/netbeans/nb/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+  sed -i "s/Icon=.*/Icon=netbeans/" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+  install -Dm644 "${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
 
   # remove non-linux non x86_64 binaries (FIXME: ideally we should just *not* build these)
   rm -rf "${pkgdir}/usr/lib/${pkgname}/ide/bin/nativeexecution/SunOS"*



More information about the arch-commits mailing list