updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / springsource-tool-suite / PKGBUILD
blob51f38b0f77b00f5cece9c3a5c5862682d6a4142a
1 # Maintainer: Ignacio Galmarino <igalmarino@gmail.com>
3 pkgname=springsource-tool-suite
4 pkgver=2.8.1
5 _eclipse_pkgver=e3.7.1
6 _eclipse_pkgver_short=e3.7
7 pkgrel=2
8 pkgdesc="SpringSource Tool Suite"
9 arch=('i686' 'x86_64')
10 url="http://www.springsource.com/developer/sts"
11 depends=('java-environment' 'gtk2' 'unzip' 'libwebkit')
12 install=${pkgname}.install
13 makedepends=('zip')
14 license=("EPL/1.1")
15 source=("http://download.springsource.com/release/STS/${pkgver}/dist/${_eclipse_pkgver_short}/${pkgname}-${pkgver}.RELEASE-${_eclipse_pkgver}-linux-gtk.tar.gz"
16         "${pkgname}.xpm"
17         "${pkgname}.desktop")
18 md5sums=('7b205678bd01a61cb8456ff75946cfd8'
19          'bd1da8bceeb4ae06cdd85759ed654982'
20          '9bbe43942c2cad54ca467ff5bebde8e9')
21 [ "$CARCH" = "x86_64" ] && source[0]="http://download.springsource.com/release/STS/${pkgver}/dist/${_eclipse_pkgver_short}/${pkgname}-${pkgver}.RELEASE-${_eclipse_pkgver}-linux-gtk-x86_64.tar.gz"
22 [ "$CARCH" = "x86_64" ] && md5sums[0]='7b205678bd01a61cb8456ff75946cfd8'
24 package() {
25   cd "${srcdir}/springsource"
27   # install eclipse
28   install -m755 -d "${pkgdir}/opt"
29   mv "${srcdir}/springsource" "${pkgdir}/opt/springsource"
31   # install misc
32   install -d ${pkgdir}/usr/bin ${pkgdir}/usr/share/applications
33   install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
34   ln -s "/opt/springsource/sts-${pkgver}.RELEASE/STS" ${pkgdir}/usr/bin/STS
36   # install icon
37   install -Dm644 ${srcdir}/${pkgname}.xpm ${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.xpm