blob: 7ab11eaf7ffeee96ce4083a0ae8009265b21b927 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Maintainer: Raphaƫl Doursenaud <rdoursenaud@gpcsolutions.fr>
# Contributor: Jesse Jaara <gmail.com: jesse.jaara>
# Uncomment if you want to disable compressing the package to save some time.
#PKGEXT=.pkg.tar
pkgname=clion-eap
_pkgname=clion
_archname=CLion
pkgver=162.1628.2
_pkgver=${pkgver}
pkgrel=1
pkgdesc="C/C++ IDE. 30-day evaluation."
arch=('x86_64')
options=(!strip)
url="http://www.jetbrains.com/${_pkgname}"
license=('custom')
optdepends=(
'java-runtime: native JRE (Please edit PKGBUILD to remove the bundled one)'
'gdb: native debugger (You may want to edit PKGBUILD to remove the bundled one)'
'cmake: native build system (You may want to edit PKGBUILD to remove the bundled one)'
'lldb: native debugger (You may want to edit PKGBUILD to remove the bundled one)'
'gcc: GNU compiler'
'clang: LLVM compiler'
'biicode: C/C++ dependency manager'
'gtest: C++ testing'
'swift: Swift programming language support (Also requires the plugin)'
'python: Python programming language support (Also requires the plugin)'
'python2: Python 2 programming language support (Also requires the plugin)'
'doxygen: Code documentation generation'
)
source=("https://download.jetbrains.com/cpp/${_archname}-${_pkgver}.tar.gz")
sha512sums=('94041fa8ddf7564d2d7491e1744a686c7459c5a0e7a908772467c17b8e80a2cb049bd32b7a1f8b09171269f69ddebeafe8d9cd9a8e37e53b89089b1e2dbe80c2')
noextract=("${_archname}-${_pkgver}.tar.gz")
package() {
mkdir -p "${pkgdir}/opt/${pkgname}"
bsdtar --strip-components 1 -xf "${_archname}-${_pkgver}.tar.gz" -C "${pkgdir}/opt/${pkgname}"
# Uncomment to use system JRE
#rm -r "${pkgdir}/opt/${pkgname}/jre"
# Uncomment to remove bundled CMake, GDB and/or LLDB
#rm -r "${pkgdir}/opt/${pkgname}/bin/cmake"
#rm -r "${pkgdir}/opt/${pkgname}/bin/gdb"
#rm -r "${pkgdir}/opt/${pkgname}/bin/lldb"
if [[ $CARCH = 'i686' ]]; then
rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux64.so"
rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier64"
fi
if [[ $CARCH = 'x86_64' ]]; then
rm -f "${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux.so"
rm -f "${pkgdir}/opt/${pkgname}/bin/fsnotifier"
fi
(
cat <<EOF
[Desktop Entry]
Type=Application
Version=1.0
Name=CLion EAP
GenericName=${_pkgname}
Comment=${pkgdesc}
Icon=${pkgname}
Exec="/usr/bin/${pkgname}" %f
Terminal=false
Categories=Development;IDE;
StartupNotify=true
StartupWMClass=jetbrains-${_pkgname}
EOF
) > ${startdir}/jetbrains-${pkgname}.desktop
mkdir -p "${pkgdir}/usr/bin/"
mkdir -p "${pkgdir}/usr/share/applications/"
mkdir -p "${pkgdir}/usr/share/pixmaps/"
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
install -m 644 "${startdir}/jetbrains-${pkgname}.desktop" "${pkgdir}/usr/share/applications/"
ln -s "/opt/${pkgname}/bin/${_pkgname}.svg" "${pkgdir}/usr/share/pixmaps/${pkgname}.svg"
ln -s "/opt/${pkgname}/license/CLion_Preview_License.txt" "${pkgdir}/usr/share/licenses/${pkgname}"
ln -s "/opt/${pkgname}/bin/${_pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
}
|