Created
October 8, 2015 13:31
-
-
Save anonymous/e76b2635ccf689235ad8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Gauthier P. <kendos dot kenlen at gmail dot com> | |
# Based on Pycharm-EAP PKGBUILD by lots0logs | |
pkgname=intellij-idea-ue-eap | |
_pkgname=idea-IU | |
_buildver=143.116.4 | |
_pkgver=15 | |
_eap="True" | |
epoch=3 | |
pkgver=15.${_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}.tar.gz") | |
sha256sums=$(wget -q "${source}.sha256" && cat "ideaIU-${_buildver}.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: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment