updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / eclipse-java / PKGBUILD
blobe8f5632522ad8a2edaa7d83b5bca5a8eb1c0feac
1 # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
2 # Contributor: [Jack Zhang](mailto:moonboots08@gmail.com)
4 [ $CARCH = "x86_64" ] && _arch=-x86_64
5 _eclipse_name=indigo
6 _eclipse_release=SR1
7 _eclipse_timestamp=201109091335
9 pkgname=eclipse-java
10 pkgver=3.7
11 pkgrel=1
12 pkgdesc="Eclipse IDE for Java Developers"
13 arch=('i686' 'x86_64')
14 url="http://www.eclipse.org"
15 license=("EPL")
16 depends=('java-environment>=6' 'gtk2>=2.16.1' 'xulrunner>=1.9.0.10')
17 makedepends=('unzip' 'patch')
18 provides=('eclipse')
19 conflicts=('eclipse')
20 install=${pkgname}.install
21 source=(
22 eclipse.sh
23 eclipse.desktop
24 eclipse.ini.patch
25 eclipse.svg
26 http://ftp.osuosl.org/pub/eclipse/technology/epp/downloads/release/${_eclipse_name}/${_eclipse_release}/eclipse-java-${_eclipse_name}-${_eclipse_release}-linux-gtk${_arch}.tar.gz
29 changelog=${pkgname}.ChangeLog.markdown
32 md5sums=('00598e0866353f7a7b1a5ed65dc01610'
33          '0537090ceeb11a2af66676481e8cf797'
34          '9de5334a779524ff68c6026235872b88'
35          '5e9975a49de88815a731cbd4c77a136e'
36          '2a0af3038349efa7ddc9af00a4d66dda')
37 sha256sums=('4cca2873697a3af39a96449021d7fdc2fc2b01abc9f7883946081f6be7a5ed48'
38             '4eb2189c96fcfa340886b049b34dc3636d7b2bfa865140dc72edb61455d900c3'
39             '363361915eef03091a22b80e17712014679bf4ade7fbb43bdafab058b85cdd9f'
40             '6fe3ab198af244f9c8c2463b6837855506e811f61e5fd8ac7c9d5fe348830a14'
41             '15e1e9aaa21c61e0dcc8e01b71b368efd070a9a9d6f82e266c8eb4f8573b05e6')
43 [ "$CARCH" = "x86_64" ] && md5sums[4]='71efb534eeae80644cd421e72a22e7e9'
44 [ "$CARCH" = "x86_64" ] && sha256sums[4]='fc1b47772e01115ecf933bf4b5b489e4fa57f0131f84ddc14ed1f5d4c03498c7'
46 package() {
47         local _icon_path=/usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.v${_eclipse_timestamp}
49         install -m755 -d $pkgdir/usr/{bin,share/applications}
50         install -m755 -d $pkgdir/usr/share/icons/hicolor/{16x16,32x32,48x48,scalable}/apps
52         cd $srcdir
54         patch -p1 < eclipse.ini.patch
56         mv eclipse $pkgdir/usr/share
57         install -D -m 755 eclipse.sh $pkgdir/usr/bin/eclipse
58         install -D -m 644 eclipse.desktop $pkgdir/usr/share/applications
59         install -D -m 644 eclipse.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/eclipse.svg
60         ln -s ${_icon_path}/eclipse.png ${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse.png
61         ln -s ${_icon_path}/eclipse32.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png
62         ln -s ${_icon_path}/eclipse48.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse.png