desktop/netbeans/PKGBUILD
2012-10-23 02:08:28 +00:00

55 lines
1.9 KiB
Bash

#
# 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
_pkgdate=201210100934
pkgver=7.2.1
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')
categories=('programming')
options=('!strip')
install="${pkgname}.install"
source=("http://download.netbeans.org/${pkgname}/${pkgver}/final/zip/${pkgname}-${pkgver}-${_pkgdate}-ml.zip"
'netbeans.desktop')
md5sums=('9a57b21f0d08d899a5ca775c12893a9d'
'385f0c0f506880813f7b3afc239adb0c')
package() {
cd "${srcdir}"
install -d -m755 "${pkgdir}/usr/share"
cp -r "${pkgname}" "${pkgdir}/usr/share"
rm -f "${pkgdir}/usr/share/${pkgname}/bin"/*.exe
install -d -m755 "${pkgdir}/usr/bin"
ln -s "/usr/share/${pkgname}/bin/${pkgname}" \
"${pkgdir}/usr/bin/${pkgname}"
install -D -m644 "${srcdir}/netbeans.desktop" \
"${pkgdir}/usr/share/applications/netbeans.desktop"
install -D -m644 "${pkgname}/nb/${pkgname}.png" \
"${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -D -m644 "${pkgname}/LICENSE.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
# Globally enable antialiasing in NetBeans
local __aaoptions="-J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=on"
sed -e "s:netbeans_default_options=\"\(.*\)\":netbeans_default_options=\"\1 ${__aaoptions}\":" \
-i "${pkgdir}/usr/share/${pkgname}/etc/netbeans.conf"
}
# vim:set ts=2 sw=2 et: