desktop/netbeans/PKGBUILD

54 lines
1.8 KiB
Bash
Raw Normal View History

#
2013-01-01 11:18:56 +08:00
# Apps Packages for Chakra, part of chakra-project.org
#
2013-01-01 11:18:56 +08:00
# maintainer abveritas[at]chakra-project[dot]org>
# contributor Fabio Lima <fheday at dcc [dot] fc [dot] up [dot] pt>
pkgname=netbeans
2012-10-23 10:08:28 +08:00
_pkgdate=201210100934
pkgver=7.2.1
2013-01-01 11:18:56 +08:00
pkgrel=2
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')
2012-10-23 10:08:28 +08:00
options=('!strip')
2012-08-04 03:31:20 +08:00
install="${pkgname}.install"
source=("http://download.netbeans.org/${pkgname}/${pkgver}/final/zip/${pkgname}-${pkgver}-${_pkgdate}-ml.zip"
'netbeans.desktop')
2012-10-23 10:08:28 +08:00
md5sums=('9a57b21f0d08d899a5ca775c12893a9d'
2013-01-01 11:18:56 +08:00
'3f9a6c7ba77d784ac9566db021dc9265')
package() {
2012-10-23 10:08:28 +08:00
cd "${srcdir}"
2012-10-23 10:08:28 +08:00
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"
2012-10-23 10:08:28 +08:00
ln -s "/usr/share/${pkgname}/bin/${pkgname}" \
"${pkgdir}/usr/bin/${pkgname}"
2012-08-04 03:31:20 +08:00
install -D -m644 "${srcdir}/netbeans.desktop" \
"${pkgdir}/usr/share/applications/netbeans.desktop"
2012-10-23 10:08:28 +08:00
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"
2012-08-04 03:31:20 +08:00
sed -e "s:netbeans_default_options=\"\(.*\)\":netbeans_default_options=\"\1 ${__aaoptions}\":" \
2012-10-23 10:08:28 +08:00
-i "${pkgdir}/usr/share/${pkgname}/etc/netbeans.conf"
}
# vim:set ts=2 sw=2 et: