[ create a new paste ] login | about

Link: http://codepad.org/O0yRaNiV    [ raw code | fork ]

Plain Text, pasted on Aug 1:
# Maintainer: Gifts <gifts.antichat@gmail.com>
# Contributor: Andrey Vlasovskikh <andrey.vlasovskikh@gmail.com>
pkgname=pycharm-eap
_buildver=130.1451
pkgver=3.0.${_buildver}
pkgrel=1
pkgdesc="Powerful Python and Django IDE, Early Access Program (EAP) build"
arch=('i686' 'x86_64')
url="http://confluence.jetbrains.com/display/PYH/JetBrains+PyCharm+Preview+%28EAP%29"
license=("custom")
depends=("java-environment>=6")
changelog="CHANGES"
source=("http://download.jetbrains.com/python/pycharm-${_buildver}.tar.gz")
md5sums=('93fd44881c5de6391979bf1e6f951350')
options=('!strip')


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"
}




Create a new paste based on this one


Comments: