updated on Mon Jan 9 08:00:21 UTC 2012
[aur-mirror.git] / eclipse-jee / PKGBUILD
blob62190412eae73d70e2bba3300ce60fd00744f15a
1 # Contributor: [Vitaliy Berdinskikh](mailto:ur6lad@archlinux.org.ua) aka UR6LAD
3 [ $CARCH = "x86_64" ] && _arch=-x86_64
4 _eclipse_name=indigo
5 _eclipse_release=R
6 _eclipse_timestamp=201106131736
8 pkgname=eclipse-jee
9 pkgver=3.7
10 pkgrel=2
11 pkgdesc="Eclipse IDE for Java EE Developers"
12 arch=('i686' 'x86_64')
13 url="http://www.eclipse.org"
14 license=('EPL')
15 depends=('java-environment>=6' 'gtk2>=2.16.1' 'xulrunner>=1.9.0.10')
16 makedepends=('unzip' 'patch')
17 provides=('eclipse')
18 conflicts=('eclipse')
19 install=${pkgname}.install
20 source=(eclipse.sh eclipse.desktop eclipse.ini.patch eclipse.svg
21                 http://ftp.halifax.rwth-aachen.de/eclipse/technology/epp/downloads/release/${_eclipse_name}/${_eclipse_release}/${pkgname}-${_eclipse_name}-linux-gtk${_arch}.tar.gz)
22 changelog=${pkgname}.ChangeLog.markdown
24 md5sums=('00598e0866353f7a7b1a5ed65dc01610'
25          '0537090ceeb11a2af66676481e8cf797'
26          '95cd5f9fb766ab4b4f9f4f1802d7a385'
27          '5e9975a49de88815a731cbd4c77a136e'
28          'a75089028a10e5140bf18ca0b83a3041')
29 sha256sums=('4cca2873697a3af39a96449021d7fdc2fc2b01abc9f7883946081f6be7a5ed48'
30             '4eb2189c96fcfa340886b049b34dc3636d7b2bfa865140dc72edb61455d900c3'
31             'fee0685e9341912144bf15c270f518fc965d975728906bd03a3fabbc8ecc685c'
32             '6fe3ab198af244f9c8c2463b6837855506e811f61e5fd8ac7c9d5fe348830a14'
33             '552df575d980929e007527f7f2563b85e9c8c9e92349646f4524e9e3a06c4027')
35 [ "$CARCH" = "x86_64" ] && md5sums[4]='a75089028a10e5140bf18ca0b83a3041'
36 [ "$CARCH" = "x86_64" ] && sha256sums[4]='552df575d980929e007527f7f2563b85e9c8c9e92349646f4524e9e3a06c4027'
38 package() {
39         local _icon_path=/usr/share/eclipse/plugins/org.eclipse.platform_${pkgver}.v${_eclipse_timestamp}
41         install -m755 -d $pkgdir/usr/{bin,share/applications}
42         install -m755 -d $pkgdir/usr/share/icons/hicolor/{16x16,32x32,48x48,scalable}/apps
44         cd $srcdir
46         patch -p1 < eclipse.ini.patch
48         mv eclipse $pkgdir/usr/share
49         install -D -m 755 eclipse.sh $pkgdir/usr/bin/eclipse
50         install -D -m 644 eclipse.desktop $pkgdir/usr/share/applications
51         install -D -m 644 eclipse.svg $pkgdir/usr/share/icons/hicolor/scalable/apps/eclipse.svg
52         ln -s ${_icon_path}/eclipse.png ${pkgdir}/usr/share/icons/hicolor/16x16/apps/eclipse.png
53         ln -s ${_icon_path}/eclipse32.png ${pkgdir}/usr/share/icons/hicolor/32x32/apps/eclipse.png
54         ln -s ${_icon_path}/eclipse48.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/eclipse.png