updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / netbeans-java-beta / PKGBUILD
blobfca605b17af07371b5fbf2745747744ff757fdc0
1 # Maintainer: kane77 <martinhrvn at gmail dot com>
2 # Adapted/copied from netbeans-cpp-beta 7.0B (Thanks wimvdh)
3 pkgname=netbeans-java-beta
4 pkgver=7.1rc1
5 pkgrel=1
6 pkgdesc="Netbeans IDE development platform - JavaEE version"
7 arch=('i686' 'x86_64')
8 url="http://www.netbeans.org"
9 license=('CDDL')
10 depends=('java-environment')
11 makedepend=('unzip')
12 conflicts=('netbeans' 'netbeans-beta')
13 install=netbeans.install
14 source=(http://dlc.sun.com.edgesuite.net/netbeans/7.1/rc1/zip/netbeans-7.1rc1-201111242103-ml-javaee.zip netbeans.desktop)
16 md5sums=('1ef840698651cb788aad890990e4a4af'
17         '7d6d2b2fc81a461b77c2457e91b274e5')
19 build() {
20   cd $srcdir
21   mkdir -p $pkgdir/usr/share/netbeans
23   rm $srcdir/netbeans/bin/netbeans.exe
24   rm -r $srcdir/netbeans/ide/bin/nativeexecution/MacOSX-x86
25   rm -r $srcdir/netbeans/ide/bin/nativeexecution/MacOSX-x86_64
26   rm -r $srcdir/netbeans/ide/bin/nativeexecution/SunOS-sparc
27   rm -r $srcdir/netbeans/ide/bin/nativeexecution/SunOS-sparc_64
28   rm -r $srcdir/netbeans/ide/bin/nativeexecution/SunOS-x86
29   rm -r $srcdir/netbeans/ide/bin/nativeexecution/SunOS-x86_64
30   rm -r $srcdir/netbeans/ide/bin/nativeexecution/Windows-x86
31   rm -r $srcdir/netbeans/ide/bin/nativeexecution/Windows-x86_64
33   cd $srcdir/netbeans/profiler/lib/deployed/jdk15/
34   rm -r hpux-pa_risc2.0 hpux-pa_risc2.0w mac solaris-amd64 solaris-i386 solaris-sparc solaris-sparcv9 windows windows-amd64
35   cd $srcdir/netbeans/profiler/lib/deployed/jdk16/
36   rm -r hpux-pa_risc2.0 hpux-pa_risc2.0w mac solaris-amd64 solaris-i386 solaris-sparc solaris-sparcv9 windows windows-amd64
37   cp -r $srcdir/netbeans/* $pkgdir/usr/share/netbeans/
39   install -D -m644 $srcdir/netbeans.desktop $pkgdir/usr/share/applications/netbeans.desktop
40   mkdir -p $pkgdir/usr/bin
41   ln -s /usr/share/netbeans/bin/netbeans $pkgdir/usr/bin/netbeans