blob: 5f68fa2b71e53ed47a30538eefbade077cf894af (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Maintainer: Leonidas Spyropoulos <artafinde at gmail dot com>
# Based on Pycharm-EAP PKGBUILD by lots0logs
pkgname=intellij-idea-ue-eap
_pkgname=idea-IU
_buildver=144.3357.4
_pkgver=16
_eap="True"
epoch=3
pkgver=16.${_buildver}
pkgrel=1
pkgdesc="Early access version of the upcoming version of Intellij Idea IDE (ultimate version)"
arch=('any')
options=(!strip)
url="http://www.jetbrains.com/idea/"
license=('custom')
depends=('java-environment' 'giflib' 'libxtst')
makedepends=('wget')
if [[ ${_eap} = "True" ]]; then
source=("http://download.jetbrains.com/idea/ideaIU-${_buildver}-custom-jdk-linux.tar.gz")
sha256sums=$(wget -q "${source}.sha256" && cat "ideaIU-${_buildver}-custom-jdk-linux.tar.gz.sha256" | cut -f1 -d" ")
else
source=("http://download.jetbrains.com/idea/ideaIU-${_pkgver}.tar.gz")
sha256sums=$(wget -q "${source}.sha256" && cat "ideaIU-${_pkgver}.tar.gz.sha256" | cut -f1 -d" ")
fi
package() {
cd "$srcdir"
mkdir -p "${pkgdir}/opt/${pkgname}"
if [[ ${_eap} = "True" ]]; then
cp -R "${srcdir}/idea-IU-${_buildver}/"* "${pkgdir}/opt/${pkgname}"
else
cp -R "${srcdir}/idea-IU-${_buildver}/"* "${pkgdir}/opt/${pkgname}"
fi
if [[ $CARCH = 'i686' ]]; then
rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux64.so"
rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier64"
fi
(
cat <<EOF
[Desktop Entry]
Version=$pkgver
Type=Application
Name=IntelliJ IDEA Ultimate EAP
Comment=Intelligent Java IDE - EAP version
Exec="/opt/$pkgname/bin/idea.sh" %f
Icon=/opt/$pkgname/bin/idea.png
Comment=$pkgdesc
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-idea
EOF
) > "${srcdir}/${pkgname}.desktop"
mkdir -p "${pkgdir}/usr/bin/"
mkdir -p "${pkgdir}/usr/share/applications/"
install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
install -d -Dm755 "${srcdir}/idea-IU-${_buildver}/license" "${pkgdir}/usr/share/licenses/${pkgname}/"
ln -s "/opt/${pkgname}/bin/idea.sh" "${pkgdir}/usr/bin/idea-ue-eap"
}
# vim:set ts=2 sw=2 et:
|