desktop/netbeans/PKGBUILD
2014-09-20 18:20:26 +00:00

43 lines
1.5 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# maintainer abveritas[at]chakra-project[dot]org>
# contributor Fabio Lima <fheday at dcc [dot] fc [dot] up [dot] pt>
pkgname=netbeans
_pkgdate=201408251540
pkgver=8.0.1
pkgrel=1
pkgdesc='Netbeans IDE development platform.'
arch=('any')
url='http://www.netbeans.org'
license=('CDDL')
depends=('java-environment' 'libxtst' 'giflib' 'atk')
makedepends=('gendesk' 'setconf')
optdepends=('php: for developing programs in php'
'ruby: for developing programs in ruby')
categories=('programming')
options=('!strip')
install="${pkgname}.install"
source=("http://dlc.sun.com.edgesuite.net/${pkgname}/${pkgver}/final/zip/${pkgname}-${pkgver}-${_pkgdate}.zip")
# http://dlc.sun.com.edgesuite.net/netbeans/8.0/final/zip/
sha256sums=('5c572e18ff610d7d78044c7602bfaa97d0faaeb6ba3f4fbe1427cadb12285e5e')
prepare() {
gendesk -f -n --pkgname "${pkgname}" --pkgdesc "${pkgdesc}"
setconf "${pkgname}/bin/${pkgname}" basedir "/usr/share/${pkgname}"
}
package() {
mkdir -p "${pkgdir}/usr/"{bin,share/applications}
cp -r "${pkgname}" "${pkgdir}/usr/share/"
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}"
# Cleanup (contains the file that is now placed in /usr/bin + .exe-files)
rm -r "${pkgdir}/usr/share/${pkgname}/bin"
}