Last active
January 1, 2016 04:59
-
-
Save intgr/8095226 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: Gifts <[email protected]> | |
# Contributor: Andrey Vlasovskikh <[email protected]> | |
# Contributor: Dustin Falgout <[email protected]> | |
pkgname=pycharm-eap | |
_buildver=133.291 | |
_pkgver=3.0.2 | |
pkgver=${_pkgver}.${_buildver} | |
pkgrel=2 | |
pkgdesc="Powerful Python and Django IDE, Early Access Program (EAP) build. Professional edition." | |
arch=('any') | |
options=('!strip') | |
url="http://www.jetbrains.com/pycharm/" | |
license=("custom") | |
depends=("java-environment>=6") | |
changelog="CHANGES" | |
source=("http://download.jetbrains.com/python/pycharm-professional-${_buildver}.tar.gz") | |
md5sums=('e3c226fa9517283d41eb656ad7e33014') | |
build() { | |
cd "${srcdir}" | |
mkdir -p "${pkgdir}/opt/${pkgname}" || return 1 | |
cp -R "${srcdir}/pycharm-${_buildver}/"* "${pkgdir}/opt/${pkgname}" || return 1 | |
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=PyCharm-EAP | |
Exec="/opt/$pkgname/bin/pycharm.sh" %f | |
Icon=/opt/$pkgname/bin/pycharm.png | |
Comment=$pkgdesc | |
Categories=Development;IDE; | |
Terminal=false | |
StartupNotify=true | |
StartupWMClass=jetbrains-pycharm | |
EOF | |
) > "${startdir}/${pkgname}.desktop" | |
mkdir -p "${pkgdir}/usr/bin/" || return 1 | |
mkdir -p "${pkgdir}/usr/share/applications/" || return 1 | |
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1 | |
install -Dm644 "${startdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/" | |
install -Dm644 "${srcdir}/pycharm-${_buildver}/license/PyCharm_license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/PyCharm_license.txt" | |
ln -s "/opt/$pkgname/bin/pycharm.sh" "$pkgdir/usr/bin/pycharm-eap" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment