1 # Maintainer: Eduard Kracmar <edke.kraken[at]gmail[dot]com>
2 # Contributor: D. Can Celasun <dcelasun[at]gmail[dot]com>
3 # Contributor: Slava Volkov <sv99sv[at]gmail[dot]com>
6 _pkgname=PhpStorm # Directory name in the tar file
10 pkgdesc="Lightweight and Smart PHP IDE. 30-day free trial."
11 arch=('i686' 'x86_64')
12 url="http://www.jetbrains.com/phpstorm/"
14 depends=('java-runtime>=6')
15 conflicts=('phpstorm')
16 source=(http://download.jetbrains.com/webide/PhpStorm-${pkgver}.tar.gz)
17 md5sums=('990e003faba72b0a546cd3c287bdeff8')
21 mkdir -p ${pkgdir}/opt/${pkgname} || return 1
22 cp -R ${srcdir}/${_pkgname}-${pkgbuild}/* ${pkgdir}/opt/${pkgname} || return 1
23 if [[ $CARCH = 'i686' ]]; then
24 rm -f ${pkgdir}/opt/${pkgname}/bin/libyjpagent64.so
25 rm -f ${pkgdir}/opt/${pkgname}/bin/libbreakgen64.so
26 rm -f ${pkgdir}/opt/${pkgname}/bin/fsnotifier64
28 if [[ $CARCH = 'x86_64' ]]; then
29 rm -f ${pkgdir}/opt/${pkgname}/bin/libyjpagent.so
30 rm -f ${pkgdir}/opt/${pkgname}/bin/libbreakgen.so
31 rm -f ${pkgdir}/opt/${pkgname}/bin/fsnotifier
40 GenericName=Lightweight and Smart PHP IDE
41 Comment=Lightweight and Smart PHP IDE 30-day free trial
42 Exec=/opt/${pkgname}/bin/phpstorm.sh
45 Categories=Development
47 ) > ${startdir}/phpstorm.desktop
49 mkdir -p ${pkgdir}/usr/share/applications/ || return 1
50 mkdir -p ${pkgdir}/usr/share/pixmaps/ || return 1
51 mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
52 install -m 644 ${startdir}/phpstorm.desktop ${pkgdir}/usr/share/applications/
53 install -m 644 ${pkgdir}/opt/${pkgname}/bin/webide.png ${pkgdir}/usr/share/pixmaps/phpstorm.png
54 install -m 644 ${srcdir}/${_pkgname}-${pkgbuild}/license/${_pkgname}_license.txt ${pkgdir}/usr/share/licenses/${pkgname}/${_pkgname}_license.txt