Skip to content

Instantly share code, notes, and snippets.

@intgr
Created May 28, 2014 22:01
Show Gist options
  • Save intgr/e04aab3a8198a542dc68 to your computer and use it in GitHub Desktop.
Save intgr/e04aab3a8198a542dc68 to your computer and use it in GitHub Desktop.
pycharm-eap 3.4 RC2 PKGBUILD
# Maintainer: Gifts <[email protected]>
# Contributor: Andrey Vlasovskikh <[email protected]>
# Contributor: Dustin Falgout <[email protected]>
pkgname=pycharm-eap
_buildver=135.973
_pkgver=3.4
pkgver=${_pkgver}.${_buildver}
pkgrel=1
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")
package() {
cd "${srcdir}"
mkdir -p "${pkgdir}/opt/${pkgname}" || return 1
cp -R "${srcdir}/pycharm-${_pkgver}/"* "${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-${_pkgver}/license/PyCharm_license.txt" "${pkgdir}/usr/share/licenses/${pkgname}/PyCharm_license.txt"
ln -s "/opt/$pkgname/bin/pycharm.sh" "$pkgdir/usr/bin/pycharm-eap"
}
md5sums=('c96f54e796e7c36ac3a7a123a31d5554')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment