1 # Maintainer : Benjamin Arnoult <benjamin.arnoult@yahoo.fr>
2 # Contributor : SÅ‚awomir Kowalski <suawekk@gmail.com>
3 # This PKGBUILD is based on AUR package : netbeans-ml.
4 # I made some corrections especially for i686 version
5 # and added an icon in PNG format
7 pkgname=netbeans-ide-ml
10 pkgdesc='Netbeans IDE development platform. Multilanguage version'
12 url='http://www.netbeans.org'
15 conflicts=('netbeans')
16 depends=('java-environment')
17 optdepends=('php: for developing programs in PHP'
18 'python: for developing programs in Python'
19 'ruby: for developing programs in Ruby')
20 install='netbeans.install'
22 source=('http://bits.netbeans.org/netbeans/7.1/community/latest/zip/netbeans-7.1-201201101530-ml.zip'
23 'netbeans.desktop' 'netbeans.png')
24 md5sums=('ae11f47ff71176fde983caf9e3849418'
25 '31478ebca553043d1f523e9253cd1bcc'
26 '920d3f9b6f644d63ab87610d9ec943bd')
29 # cleanup OS specific files
30 rm $(find -name '*\.exe' -or -name '*\.bat')
31 rm -r $(find -name 'MacOSX*' -or -name 'Windows*' -or -name 'SunOS*')
32 rm -r $(find -name 'hpux*' -or -name 'mac*' -or -name 'solaris*' -or -name 'windows*')
33 # Remove 64 bits files on an i686 system else stripping fails
34 if [ $arch = 'i686' ]; then
35 rm -rf $(find -name '*64*')
40 install -d ${pkgdir}/usr/share
41 cp -r netbeans ${pkgdir}/usr/share
43 install -d ${pkgdir}/usr/share/applications
44 install -m644 netbeans.desktop \
45 ${pkgdir}/usr/share/applications
47 install -d ${pkgdir}/usr/bin
48 ln -s /usr/share/netbeans/bin/netbeans ${pkgdir}/usr/bin/netbeans
50 install -d ${pkgdir}/usr/share/pixmaps
51 install -m644 netbeans.png \
52 ${pkgdir}/usr/share/pixmaps