mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
43 lines
1.4 KiB
Bash
43 lines
1.4 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=201403101706
|
|
pkgver=8.0
|
|
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=('0d063507f48292f4033a238783fb318a6df58485a7be86206a45a97ce12de97b')
|
|
|
|
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"
|
|
}
|