mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
adding netbeans, IDE development platform, voted in from ccr
This commit is contained in:
parent
f3f8b92490
commit
793cb33440
35
netbeans/PKGBUILD
Normal file
35
netbeans/PKGBUILD
Normal 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
|
||||
}
|
9
netbeans/netbeans.desktop
Normal file
9
netbeans/netbeans.desktop
Normal 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
38
netbeans/netbeans.install
Normal 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
3
netbeans/netbeans.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
export PATH=$PATH:/usr/share/netbeans/bin/
|
Loading…
Reference in New Issue
Block a user