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

Alexander Rødseth arodseth at archlinux.org
Thu Sep 18 14:33:33 UTC 2014


    Date: Thursday, September 18, 2014 @ 16:33:32
  Author: arodseth
Revision: 119194

upgpkg: netbeans 8.0.1-1

Modified:
  netbeans/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-09-18 13:23:01 UTC (rev 119193)
+++ PKGBUILD	2014-09-18 14:33:32 UTC (rev 119194)
@@ -4,9 +4,9 @@
 # Contributor: Daniel J Griffiths <ghost1227 at archlinux.us>
 
 pkgname=netbeans
-pkgver=8.0
-_subpkgver=201403101706
-pkgrel=3
+pkgver=8.0.1
+_subver=201408251540
+pkgrel=1
 pkgdesc='IDE for Java, HTML5, PHP, Groovy, C and C++'
 arch=('any')
 url='http://netbeans.org/'
@@ -20,9 +20,11 @@
             'lib32-glibc')
 install='netbeans.install'
 options=('!strip')
-source=("http://dlc.sun.com.edgesuite.net/$pkgname/$pkgver/final/zip/$pkgname-$pkgver-$_subpkgver.zip")
 # http://dlc.sun.com.edgesuite.net/netbeans/8.0/final/zip/
-sha256sums=('0d063507f48292f4033a238783fb318a6df58485a7be86206a45a97ce12de97b')
+source=("http://dlc.sun.com.edgesuite.net/$pkgname/$pkgver/final/zip/$pkgname-$pkgver-$_subver.zip"
+        'http://www.jimvernon.com/wp-content/uploads/2014/02/netbeans.png')
+sha256sums=('5c572e18ff610d7d78044c7602bfaa97d0faaeb6ba3f4fbe1427cadb12285e5e'
+            '1d519f018ebeff6e29436c8492dbb266446bd0144fb5519b2ef6637664de6f4a')
 
 prepare() {
   gendesk -f -n --pkgname "$pkgname" --pkgdesc "$pkgdesc"
@@ -32,14 +34,19 @@
 
 package() {
   mkdir -p "$pkgdir/usr/"{bin,share/applications}
+
+  # Binary file
+  install -Dm755 "$pkgname/bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
+
+  # Resources
   cp -r "$pkgname" "$pkgdir/usr/share/"
+
+  # Desktop shortcut and icon
   install -Dm644 "$pkgname.desktop" \
     "$pkgdir/usr/share/applications/$pkgname.desktop"
-  cd "$pkgname"
-  install -Dm644 "nb/$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
-  install -Dm755 "bin/$pkgname" "$pkgdir/usr/bin/$pkgname"
+  install -Dm644 "$pkgname.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
 
-  # Cleanup (contains the file that is now placed in /usr/bin + .exe-files)
+  # Cleanup of directory that contains the binary file and .exe-files
   rm -r "$pkgdir/usr/share/$pkgname/bin"
 }
 




More information about the arch-commits mailing list