arch-ppa/src/intellij-idea-ultimate-edition/PKGBUILD

55 lines
2.0 KiB
Bash
Raw Normal View History

2016-11-05 01:29:34 -04:00
# Maintainer: Urs Wolfer <uwolfer @ fwo.ch>
2017-08-18 17:27:52 -04:00
pkgbase=intellij-idea-ultimate-edition
2019-01-31 22:51:02 -05:00
pkgname=(intellij-idea-ultimate-edition intellij-idea-ultimate-edition-jre)
2020-05-07 20:49:52 -04:00
pkgver=2020.1.1
_buildver=201.7223.91
2017-11-25 21:32:19 -05:00
pkgrel=1
2016-11-05 01:29:34 -04:00
arch=('any')
2017-08-18 17:27:52 -04:00
pkgdesc="An intelligent IDE for Java, Groovy and other programming languages with advanced refactoring features intensely focused on developer productivity."
2016-11-05 01:29:34 -04:00
url="https://www.jetbrains.com/idea/"
license=('Commercial')
options=(!strip)
2017-11-25 21:32:19 -05:00
source=("https://download.jetbrains.com/idea/ideaIU-$pkgver.tar.gz"
"jetbrains-idea.desktop")
2020-05-07 20:49:52 -04:00
sha256sums=('ca485decf8b91549a1c8e20309a7a7b6a7e032ff96e10fde2ff5dbae9e0108e3'
2017-03-13 12:19:25 -04:00
'83af2ba8f9f14275a6684e79d6d4bd9b48cd852c047dacfc81324588fa2ff92b')
2016-11-05 01:29:34 -04:00
2017-11-25 21:32:19 -05:00
prepare() {
# Extract the JRE from the main pacakge
2020-03-26 21:52:26 -04:00
rm -rf "$srcdir"/jbr
2019-07-27 10:40:51 -04:00
mv idea-IU-$_buildver/jbr "$srcdir"/jbr
2017-11-25 21:32:19 -05:00
}
2016-11-05 01:29:34 -04:00
2019-06-27 21:26:24 -04:00
package_intellij-idea-ultimate-edition() {
2017-11-25 21:32:19 -05:00
backup=("opt/$pkgname/bin/idea.vmoptions" "opt/${pkgname}/bin/idea64.vmoptions" "opt/${pkgname}/bin/idea.properties")
depends=('giflib' 'libxtst')
2019-06-27 21:26:24 -04:00
optdepends=(
'intellij-idea-ultimate-edition-jre: JetBrains custom JRE (Recommended)' 'java-environment: Required if intellij-idea-ultimate-edition-jre is not installed'
'libdbusmenu-glib: For global menu support'
)
2016-11-05 01:29:34 -04:00
2017-11-25 21:32:19 -05:00
cd "$srcdir"
2016-11-05 01:29:34 -04:00
2017-11-25 21:32:19 -05:00
install -d "$pkgdir"/{opt/$pkgname,usr/bin}
mv idea-IU-${_buildver}/* "$pkgdir"/opt/$pkgbase
2016-11-05 01:29:34 -04:00
2018-02-20 15:28:03 -05:00
# https://youtrack.jetbrains.com/issue/IDEA-185828
chmod +x "$pkgdir"/opt/$pkgbase/plugins/maven/lib/maven3/bin/mvn
2017-11-25 21:32:19 -05:00
ln -s /opt/$pkgname/bin/idea.sh "$pkgdir"/usr/bin/$pkgname
2016-11-05 01:29:34 -04:00
install -D -m644 "$srcdir"/jetbrains-idea.desktop "$pkgdir"/usr/share/applications/jetbrains-idea.desktop
2017-11-25 21:32:19 -05:00
install -D -m644 "$pkgdir"/opt/$pkgbase/bin/idea.png "$pkgdir"/usr/share/pixmaps/"$pkgname".png
2016-11-05 01:29:34 -04:00
# workaround FS#40934
2017-11-25 21:32:19 -05:00
sed -i 's|lcd|on|' "$pkgdir"/opt/$pkgname/bin/*.vmoptions
2016-11-05 01:29:34 -04:00
}
2019-06-27 21:26:24 -04:00
package_intellij-idea-ultimate-edition-jre() {
arch=('x86_64')
install -d -m 755 "$pkgdir"/opt/$pkgbase
2019-07-27 10:40:51 -04:00
mv "$srcdir"/jbr "$pkgdir"/opt/$pkgbase
2019-06-27 21:26:24 -04:00
}
2016-11-05 01:29:34 -04:00
# vim:set ts=2 sw=2 et: