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
9 pkgdesc="Lightweight and Smart PHP IDE. 30-day free trial."
10 arch=('i686' 'x86_64')
11 url="http://www.jetbrains.com/phpstorm/"
13 depends=('java-runtime>=6')
14 conflicts=('phpstorm')
15 source=(http://download.jetbrains.com/webide/PhpStorm-EAP-$pkgver.tar.gz)
16 md5sums=('b42ae3954a6593a4870e72cc77732808')
20 mkdir -p ${pkgdir}/opt/${pkgname} || return 1
21 cp -R ${srcdir}/${_pkgname}-${pkgver}/* ${pkgdir}/opt/${pkgname} || return 1
22 if [[ $CARCH = 'i686' ]]; then
23 rm -f ${pkgdir}/opt/${pkgname}/bin/libyjpagent64.so
24 rm -f ${pkgdir}/opt/${pkgname}/bin/libbreakgen64.so
25 rm -f ${pkgdir}/opt/${pkgname}/bin/fsnotifier64
27 if [[ $CARCH = 'x86_64' ]]; then
28 rm -f ${pkgdir}/opt/${pkgname}/bin/libyjpagent.so
29 rm -f ${pkgdir}/opt/${pkgname}/bin/libbreakgen.so
30 rm -f ${pkgdir}/opt/${pkgname}/bin/fsnotifier
39 GenericName=Lightweight and Smart PHP IDE
40 Comment=Lightweight and Smart PHP IDE 30-day free trial
41 Exec=/opt/${pkgname}/bin/phpstorm.sh
44 Categories=Development
46 ) > ${startdir}/phpstorm.desktop
48 mkdir -p ${pkgdir}/usr/share/applications/ || return 1
49 mkdir -p ${pkgdir}/usr/share/pixmaps/ || return 1
50 mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
51 install -m 644 ${startdir}/phpstorm.desktop ${pkgdir}/usr/share/applications/
52 install -m 644 ${pkgdir}/opt/${pkgname}/bin/webide.png ${pkgdir}/usr/share/pixmaps/phpstorm.png
53 install -m 644 ${srcdir}/${_pkgname}-${pkgver}/license/${_pkgname}_license.txt ${pkgdir}/usr/share/licenses/${pkgname}/${_pkgname}_license.txt