desktop/netbeans/PKGBUILD

43 lines
1.5 KiB
Bash
Raw Normal View History

2017-02-23 00:45:58 +08:00
# NOTE you need to update pkgdate together with pkgver
# check out pkgdate here https://netbeans.org/downloads/zip.html
pkgname=netbeans
2017-02-23 00:45:58 +08:00
pkgver=8.2
_pkgdate=201609300101
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')
url='http://www.netbeans.org'
license=('CDDL')
2017-02-23 00:45:58 +08:00
depends=('java-environment' 'ttf-font' 'libxtst' 'giflib' 'atk')
2014-04-04 06:06:32 +08:00
makedepends=('gendesk' 'setconf')
optdepends=('php: for developing programs in php'
2017-02-23 00:45:58 +08:00
'ruby: for developing programs in ruby'
'groovy: for developing programs in groovy')
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"
2015-12-03 06:26:48 +08:00
source=("http://download.netbeans.org/netbeans/$pkgver/final/zip/netbeans-$pkgver-$_pkgdate.zip")
2017-02-23 00:45:58 +08:00
sha256sums=('ad9888334b9a6c1f1138dcb2eccc8ce4921463e871e46def4ecc617538160948')
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}"
}
2012-10-23 10:08:28 +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"
}