public
Last active

PKGBUILD_eclipse-jee 4.3.1

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
# Maintainer: Giuliano Schneider <gs93@gmx.net>
# Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
 
[ $CARCH = "x86_64" ] && _arch=-x86_64
_eclipse_name=kepler
_eclipse_release=SR1
 
pkgname=eclipse-jee
pkgver=4.3.1
pkgrel=1
pkgdesc="Eclipse IDE for Java EE Developers"
arch=('i686' 'x86_64')
url="http://www.eclipse.org"
license=('EPL')
depends=('java-environment>=6' 'gtk2' 'xulrunner' 'webkitgtk2')
provides=('eclipse')
install=${pkgname}.install
source=(eclipse.sh eclipse.desktop eclipse.ini.patch eclipse.svg
"http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/${_eclipse_name}/${_eclipse_release}/${pkgname}-${_eclipse_name}-${_eclipse_release}-linux-gtk${_arch}.tar.gz&r=1")
 
changelog=${pkgname}.ChangeLog.markdown
 
md5sums=('00598e0866353f7a7b1a5ed65dc01610'
'0537090ceeb11a2af66676481e8cf797'
'a68931ca9e59dc8e760a2976abab8fd0'
'5e9975a49de88815a731cbd4c77a136e'
'ae270acfc89b6c15f5e80b3b24922bc2')
 
[ "$CARCH" = "x86_64" ] && md5sums[4]='1134caead591b42a96642131186cb069'
 
PKGEXT=".pkg.tar"
 
build() {
cd $srcdir
 
patch -p1 < eclipse.ini.patch
}
 
package() {
local _icon_path="/usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.*"
 
install -m755 -d $pkgdir/usr/{bin,share/applications}
install -m755 -d $pkgdir/usr/share/icons/hicolor/{16x16,32x32,48x48,256x256,scalable}/apps
 
cd $srcdir
 
mv eclipse $pkgdir/usr/share
install -D -m 755 eclipse.sh $pkgdir/usr/bin/eclipse
install -D -m 644 eclipse.desktop $pkgdir/usr/share/applications
install -D -m 644 eclipse.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/eclipse.svg
ln -s ${_icon_path}/eclipse16.png ${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse.png
ln -s ${_icon_path}/eclipse32.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png
ln -s ${_icon_path}/eclipse48.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse.png
ln -s ${_icon_path}/eclipse256.png ${pkgdir}/usr/share/icons/hicolor/256x256/apps/eclipse.png
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.