blob: 06b50680e7702ab089a9818e2402f8d445dd86d6 (
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
|
# Maintainer: Frederik Schwan <frederik dot schwan at linux dot com>
pkgbase=goland
pkgname=(goland goland-jre)
pkgver=2019.1
pkgrel=1
pkgdesc='Capable and Ergonomic Go IDE'
arch=('x86_64' 'i686')
url='https://www.jetbrains.com/go/'
license=('Commercial')
makedepends=('rsync')
options=('!strip')
source=(https://download.jetbrains.com/go/${pkgbase}-${pkgver}.tar.gz
jetbrains-goland.desktop)
sha512sums=('497f6cd202781c732c133f68c7349e85aede348cba0c4499626ffb420d76e14c2096f0a80a6ee6b3c84f2bfc07a715347f13c361db4dce81d2450d43c9dcffd3'
'391167246a98cc82305ffa7d475960b3f58f78d36dee5cda3f318351e5ddf07d3457688713c1fcc2c20f548aeed387e5a9f16c97423bd37bb43bc502082f61eb')
package_goland() {
optdepends=('goland-jre: JetBrains custom Java Runtime (Recommended)'
'java-runtime: JRE - Required if goland-jre is not installed')
conflicts=('gogland')
replaces=('gogland')
install -d -m 755 "${pkgdir}/opt/"
install -d -m 755 "${pkgdir}/usr/bin/"
install -d -m 755 "${pkgdir}/usr/share/applications/"
install -d -m 755 "${pkgdir}/usr/share/pixmaps/"
rsync -rtl "${srcdir}/GoLand-${pkgver}/" "${pkgdir}/opt/${pkgbase}" --exclude=/jre64
ln -s "/opt/${pkgbase}/bin/${pkgbase}.sh" "${pkgdir}/usr/bin/${pkgbase}"
install -D -m 644 "${srcdir}/jetbrains-${pkgbase}.desktop" "${pkgdir}/usr/share/applications/"
install -D -m 644 "${pkgdir}/opt/${pkgbase}/bin/${pkgbase}.png" "${pkgdir}/usr/share/pixmaps/${pkgbase}.png"
}
package_goland-jre() {
conflicts=('gogland-jre')
replaces=('gogland-jre')
install -d -m 755 "${pkgdir}/opt/${pkgbase}"
rsync -rtl "${srcdir}/GoLand-${pkgver}/jre64" "${pkgdir}/opt/${pkgbase}"
}
|