adding netbeans, IDE development platform, voted in from ccr

This commit is contained in:
Anke 2011-05-02 01:25:38 +00:00
parent f3f8b92490
commit 793cb33440
4 changed files with 85 additions and 0 deletions

35
netbeans/PKGBUILD Normal file
View File

@ -0,0 +1,35 @@
#
# Platform Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# contributor Fabio Lima <fheday at dcc [dot] fc [dot] up [dot] pt>
pkgname=netbeans
pkgver=7.0
pkgrel=1
pkgdesc='Netbeans IDE development platform.'
arch=('any')
url='http://www.netbeans.org'
license=('CDDL')
depends=('java-environment>=6')
optdepends=('php: for developing programs in php'
'ruby: for developing programs in ruby'
'python: for developing programs in python')
install=netbeans.install
source=('http://download.netbeans.org/netbeans/7.0/final/zip/netbeans-7.0-201104080000-ml.zip'
'netbeans.desktop')
md5sums=('23a0690886085abf31fb3cae84d797c0'
'88c631d0d263218e01ea886fde2bc913')
package() {
rm ${pkgname}/bin/netbeans.exe
install -d ${pkgdir}/usr/share/${pkgname}
cp -r ${pkgname}/* ${pkgdir}/usr/share/${pkgname}/
install -D -m644 netbeans.desktop ${pkgdir}/usr/share/applications/netbeans.desktop
install -d ${pkgdir}/usr/bin
ln -s /usr/share/netbeans/bin/netbeans ${pkgdir}/usr/bin/netbeans
}

View File

@ -0,0 +1,9 @@
[Desktop Entry]
Name=NetBeans IDE
Comment=A Java IDE
Icon=/usr/share/netbeans/nb/netbeans.png
Exec=/usr/share/netbeans/bin/netbeans
Terminal=false
Type=Application
Categories=Development;
StartupNotify=true

38
netbeans/netbeans.install Normal file
View File

@ -0,0 +1,38 @@
# This is a default template for a post-install scriptlet. You can
# remove any functions you don't need (and this header).
# arg 1: the new package version
pre_install() {
/bin/true
}
# arg 1: the new package version
post_install() {
update-desktop-database >/dev/null 2>&1
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
/bin/true
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
update-desktop-database >/dev/null 2>&1
/bin/true
}
# arg 1: the old package version
pre_remove() {
/bin/true
}
# arg 1: the old package version
post_remove() {
update-desktop-database >/dev/null 2>&1
/bin/true
}

3
netbeans/netbeans.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
export PATH=$PATH:/usr/share/netbeans/bin/