updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / pycharm / PKGBUILD
blob1a0364d0ea55b41ab36964cc75e2f1f4cd528d94
1 # $Id: pkgbuild-mode.el,v 1.23 2007/10/20 16:02:14 juergen Exp $
2 # Contributor: Sergey Mastykov <smastykov[at]gmail[dot]com>
4 pkgname=pycharm
5 pkgver=2.0.1
6 pkgrel=1
7 pkgdesc="Powerful Python and Django IDE. 30-day free trial."
8 arch=('i686' 'x86_64')
9 url="http://www.jetbrains.com/pycharm/"
10 license=('Commercial')
11 depends=('java-environment>=6')
12 source=(http://download.jetbrains.com/python/$pkgname-$pkgver.tar.gz)
13 sha1sums=('6d1564b398fcf1e8240fd67a58d745b439d79846')
15 build() {
16   cd $srcdir
17   mkdir -p $pkgdir/opt/$pkgname || return 1
18   cp -R $srcdir/$pkgname-$pkgver/* $pkgdir/opt/$pkgname || return 1
19   if [[ $CARCH = 'i686' ]]; then
20      rm -f $pkgdir/opt/$pkgname/bin/libyjpagent64.so
21      rm -f $pkgdir/opt/$pkgname/bin/fsnotifier64
22   fi
25 cat <<EOF
26 [Desktop Entry]
27 Version=$pkgver
28 Name=PyCharm
29 Icon=pycharm
30 GenericName=Develop with pleasure!
31 Comment=Powerful Python and Django IDE 30-day free trial
32 Exec=/opt/$pkgname/bin/pycharm.sh
33 Terminal=false
34 Type=Application
35 Categories=Development
36 EOF
37 ) > $startdir/pycharm.desktop
39   mkdir -p $pkgdir/usr/share/applications/ || return 1
40   mkdir -p $pkgdir/usr/share/pixmaps/ || return 1
41   mkdir -p $pkgdir/usr/share/licenses/$pkgname/ || return 1
42   install -Dm644 $startdir/pycharm.desktop $pkgdir/usr/share/applications/
43   install -Dm644 $pkgdir/opt/$pkgname/bin/PyCharm_48.png $pkgdir/usr/share/pixmaps/pycharm.png
44   install -Dm644 $srcdir/$pkgname-$pkgver/license/PyCharm_license.txt $pkgdir/usr/share/licenses/$pkgname/PyCharm_license.txt
47 # vim:set ts=2 sw=2 et: