blob: 98634f2146f59b4e115fb8500425362eee63d906 (
plain)
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
|
# Current maintainer: Musikolo <musikolo {at} hotmail [dot] com>
# Previous maintainer: Joseph Post <joe [at] jcpst [dot] com>
# Previous maintainer: Andrew Paugh <andrew [dot] paugh [at] gmail [dot] com>
# Updates by maintainer: Chris Fordham <chris [at] fordham [hyphon] nagy [dot] id [dot] au>
# Original maintainer: Marcin
pkgname=spring-tool-suite
pkgver=4.27.0
_pkgver_release=$pkgver.RELEASE
_eclipse_pkgver=e4.34.0
_eclipse_pkgver_short=e4.34
pkgrel=1
pkgdesc="The Spring Tool Suite (STS) from SpringSource."
arch=('x86_64')
url="https://spring.io/tools"
depends=('unzip' 'webkit2gtk' 'java-runtime>=21')
conflicts=('springsource-tool-suite')
install=${pkgname}.install
license=("EPL/1.1")
source_x86_64=(
"https://cdn.spring.io/spring-tools/release/STS4/${_pkgver_release}/dist/${_eclipse_pkgver_short}/${pkgname}-4-${_pkgver_release}-${_eclipse_pkgver}-linux.gtk.x86_64.tar.gz"
"${pkgname}.desktop"
)
sha256sums_x86_64=('e0d7200f6d0a51f5155841cd3558a76c2ff5d5150ffe39f394eeabcf084b9585'
'11c51ae27864a5c529f832506cb740c0681ad9d51c4b5f69212f61890d6aafac')
package() {
# Install eclipse to version-agnostic sts4 dirirectory
install -m755 -d "${pkgdir}/opt"
mv "${srcdir}/sts-${_pkgver_release}" "${pkgdir}/opt/sts4"
# Install misc
install -d ${pkgdir}/usr/bin ${pkgdir}/usr/share/applications
install -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
ln -s "/opt/sts4/SpringToolSuite4" ${pkgdir}/usr/bin/STS
# Install icon
install -m755 -d "${pkgdir}/usr/share/icons/hicolor/scalable/apps"
ln -s "/opt/sts4/icon.xpm" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.xpm"
# Create simlink for backward compatibility
ln -s "/opt/sts4" "${pkgdir}/opt/sts-${_pkgver_release}"
}
|