Initial import
This commit is contained in:
commit
1488711311
30
.SRCINFO
Normal file
30
.SRCINFO
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
pkgbase = pycharm-professional
|
||||||
|
pkgdesc = Powerful Python and Django IDE. Professional version.
|
||||||
|
pkgver = 4.5.1
|
||||||
|
pkgrel = 1
|
||||||
|
url = http://www.jetbrains.com/pycharm/
|
||||||
|
install = pycharm-professional.install
|
||||||
|
arch = any
|
||||||
|
license = Commercial
|
||||||
|
depends = java-environment
|
||||||
|
depends = giflib
|
||||||
|
depends = python-coverage
|
||||||
|
depends = python2-coverage
|
||||||
|
depends = ipython
|
||||||
|
depends = ipython2
|
||||||
|
depends = ttf-font
|
||||||
|
provides = pycharm
|
||||||
|
conflicts = pycharm
|
||||||
|
conflicts = pycharm-community
|
||||||
|
options = !strip
|
||||||
|
source = http://download.jetbrains.com/python/pycharm-professional-4.5.1.tar.gz
|
||||||
|
source = pycharm-professional.desktop
|
||||||
|
source = pycharm-professional.install
|
||||||
|
source = pycharm
|
||||||
|
sha256sums = e1ffd7d839a6eeda2cfdb55d0069826aef27b71a4bbb4e0668309064e87b9ef3
|
||||||
|
sha256sums = 016db1860a8b36d408c827f90aeb04b9d55cf21ea36788a9d8510cc54fae1c49
|
||||||
|
sha256sums = b45a7d833ee206b9e3d680c935fe5fa7a4b1ddd8a80e304d776e61f9874487af
|
||||||
|
sha256sums = ad59415f8ac2c623f9c61453caf70bf75b6b14db2f09807e4ea339a2dc740be9
|
||||||
|
|
||||||
|
pkgname = pycharm-professional
|
||||||
|
|
58
PKGBUILD
Normal file
58
PKGBUILD
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# Maintainer: (epsilom) Xavier Corredor <xavier.corredor.llano (a) gmail.com>
|
||||||
|
|
||||||
|
pkgname=pycharm-professional
|
||||||
|
pkgver=4.5.1
|
||||||
|
_pkgver=4.5.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Powerful Python and Django IDE. Professional version."
|
||||||
|
arch=('any')
|
||||||
|
options=('!strip')
|
||||||
|
url="http://www.jetbrains.com/pycharm/"
|
||||||
|
conflicts=('pycharm' 'pycharm-community')
|
||||||
|
provides=('pycharm')
|
||||||
|
license=('Commercial')
|
||||||
|
install=${pkgname}.install
|
||||||
|
depends=('java-environment' 'giflib' 'python-coverage' 'python2-coverage' 'ipython' 'ipython2' 'ttf-font')
|
||||||
|
source=(http://download.jetbrains.com/python/$pkgname-$_pkgver.tar.gz
|
||||||
|
'pycharm-professional.desktop'
|
||||||
|
'pycharm-professional.install'
|
||||||
|
'pycharm')
|
||||||
|
sha256sums=('e1ffd7d839a6eeda2cfdb55d0069826aef27b71a4bbb4e0668309064e87b9ef3'
|
||||||
|
'016db1860a8b36d408c827f90aeb04b9d55cf21ea36788a9d8510cc54fae1c49'
|
||||||
|
'b45a7d833ee206b9e3d680c935fe5fa7a4b1ddd8a80e304d776e61f9874487af'
|
||||||
|
'ad59415f8ac2c623f9c61453caf70bf75b6b14db2f09807e4ea339a2dc740be9')
|
||||||
|
|
||||||
|
package() {
|
||||||
|
# base
|
||||||
|
cd $srcdir
|
||||||
|
mkdir -p $pkgdir/opt/$pkgname
|
||||||
|
cp -R $srcdir/pycharm-$_pkgver/* $pkgdir/opt/$pkgname
|
||||||
|
mkdir -p $pkgdir/usr/share/{applications,pixmaps}
|
||||||
|
mkdir -p $pkgdir/usr/bin/
|
||||||
|
install -Dm644 $pkgdir/opt/$pkgname/bin/pycharm.png $pkgdir/usr/share/pixmaps/pycharm.png
|
||||||
|
# lisense
|
||||||
|
mkdir -p $pkgdir/usr/share/licenses/$pkgname/
|
||||||
|
install -Dm644 $srcdir/pycharm-$_pkgver/license/PyCharm_license.txt $pkgdir/usr/share/licenses/$pkgname/PyCharm_license.txt
|
||||||
|
# exec
|
||||||
|
install -Dm755 $startdir/pycharm $pkgdir/usr/bin/
|
||||||
|
# app file desktop
|
||||||
|
install -Dm644 $startdir/pycharm-professional.desktop $pkgdir/usr/share/applications/
|
||||||
|
|
||||||
|
# delete some conflicts files for i686
|
||||||
|
if [[ $CARCH = 'i686' ]]; then
|
||||||
|
rm -f $pkgdir/opt/$pkgname/bin/libyjpagent-linux64.so
|
||||||
|
rm -f $pkgdir/opt/$pkgname/bin/fsnotifier64
|
||||||
|
fi
|
||||||
|
|
||||||
|
# enable anti-aliasing text in pycharm options
|
||||||
|
if [[ $CARCH = 'i686' ]]; then
|
||||||
|
#echo '-Dawt.useSystemAAFontSettings=on' >> $pkgdir/opt/$pkgname/bin/pycharm.vmoptions
|
||||||
|
echo '-Dswing.aatext=true' >> $pkgdir/opt/$pkgname/bin/pycharm.vmoptions
|
||||||
|
else
|
||||||
|
#echo '-Dawt.useSystemAAFontSettings=on' >> $pkgdir/opt/$pkgname/bin/pycharm64.vmoptions
|
||||||
|
echo '-Dswing.aatext=true' >> $pkgdir/opt/$pkgname/bin/pycharm64.vmoptions
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:set ts=2 sw=2 et:
|
5
pycharm
Normal file
5
pycharm
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh -l
|
||||||
|
|
||||||
|
[[ -f ~/.bash_profile ]] && . ~/.bash_profile
|
||||||
|
|
||||||
|
sh /opt/pycharm-professional/bin/pycharm.sh
|
11
pycharm-professional.desktop
Normal file
11
pycharm-professional.desktop
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=PyCharm
|
||||||
|
Icon=pycharm
|
||||||
|
GenericName=Python and Django IDE
|
||||||
|
Comment=Powerful Python and Django IDE. Professional version.
|
||||||
|
Exec=/usr/bin/pycharm
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Categories=Development;IDE;
|
||||||
|
StartupNotify=true
|
||||||
|
StartupWMClass=jetbrains-pycharm
|
23
pycharm-professional.install
Normal file
23
pycharm-professional.install
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
post_install() {
|
||||||
|
/bin/cat << EOF
|
||||||
|
|
||||||
|
===>
|
||||||
|
===> Please set the Anti-aliasing font settings for Java app
|
||||||
|
===> adding the following line to the user's file ~/.bash_profile
|
||||||
|
===> (not in ~/.bashrc):
|
||||||
|
===>
|
||||||
|
===> export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=setting'
|
||||||
|
===>
|
||||||
|
===> Replace 'setting' with on, lcd, gasp, etc. By default is
|
||||||
|
===> configured with lcd.
|
||||||
|
===>
|
||||||
|
===> Please read the following link for more options:
|
||||||
|
===> https://wiki.archlinux.org/index.php/Java_Runtime_Environment_Fonts
|
||||||
|
===>
|
||||||
|
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
post_upgrade() {
|
||||||
|
post_install
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user