2015-03-15 21:42:21 +08:00
|
|
|
#Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/netbeans
|
2011-05-02 09:25:38 +08:00
|
|
|
|
|
|
|
pkgname=netbeans
|
2015-03-15 21:42:21 +08:00
|
|
|
_pkgdate=201411102027
|
|
|
|
pkgver=8.0.2
|
2013-02-22 10:56:42 +08:00
|
|
|
pkgrel=1
|
2015-03-15 21:42:21 +08:00
|
|
|
pkgdesc='Netbeans IDE development platform for Java, HTML5, PHP, Groovy, C and C++.'
|
|
|
|
arch=('x86_64')
|
2011-05-02 09:25:38 +08:00
|
|
|
url='http://www.netbeans.org'
|
|
|
|
license=('CDDL')
|
2014-04-04 06:06:32 +08:00
|
|
|
depends=('java-environment' 'libxtst' 'giflib' 'atk')
|
|
|
|
makedepends=('gendesk' 'setconf')
|
2011-05-02 09:25:38 +08:00
|
|
|
optdepends=('php: for developing programs in php'
|
2013-02-22 10:56:42 +08:00
|
|
|
'ruby: for developing programs in ruby')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('programming')
|
2012-10-23 10:08:28 +08:00
|
|
|
options=('!strip')
|
2015-03-15 21:42:21 +08:00
|
|
|
backup=('usr/share/netbeans/etc/netbeans.conf')
|
2012-08-04 03:31:20 +08:00
|
|
|
install="${pkgname}.install"
|
2014-09-21 02:20:26 +08:00
|
|
|
source=("http://dlc.sun.com.edgesuite.net/${pkgname}/${pkgver}/final/zip/${pkgname}-${pkgver}-${_pkgdate}.zip")
|
2015-03-15 21:42:21 +08:00
|
|
|
sha256sums=('e6e8e1cf033453ce60ee512b63122ca74af27f3f08a8eaa2ba5e1eda4aceb9f2')
|
2011-05-02 09:25:38 +08:00
|
|
|
|
2014-04-04 06:06:32 +08:00
|
|
|
prepare() {
|
2014-09-21 02:20:26 +08:00
|
|
|
gendesk -f -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}"
|
|
|
|
setconf "${pkgname}/bin/${pkgname}" basedir "/usr/share/${pkgname}"
|
2013-02-22 10:56:42 +08:00
|
|
|
}
|
2012-10-23 10:08:28 +08:00
|
|
|
|
2013-02-22 10:56:42 +08:00
|
|
|
package() {
|
2014-09-21 02:20:26 +08:00
|
|
|
mkdir -p "${pkgdir}/usr/"{bin,share/applications}
|
|
|
|
cp -r "${pkgname}" "${pkgdir}/usr/share/"
|
2015-03-15 21:42:21 +08:00
|
|
|
|
|
|
|
# Desktop shortcut and icon
|
2014-09-21 02:20:26 +08:00
|
|
|
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}"
|
2014-04-04 06:06:32 +08:00
|
|
|
|
|
|
|
# Cleanup (contains the file that is now placed in /usr/bin + .exe-files)
|
2014-09-21 02:20:26 +08:00
|
|
|
rm -r "${pkgdir}/usr/share/${pkgname}/bin"
|
2011-05-02 09:25:38 +08:00
|
|
|
}
|