updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / phpstorm-eap / PKGBUILD
blob6dad9e379b1c7c7ac8e492a0d0b8d3bbf434e656
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>
5 pkgname=phpstorm-eap
6 _pkgname=PhpStorm # Directory name in the tar file
7 pkgver=111.217
8 pkgrel=1
9 pkgdesc="Lightweight and Smart PHP IDE. 30-day free trial."
10 arch=('i686' 'x86_64')
11 url="http://www.jetbrains.com/phpstorm/"
12 license=('custom')
13 depends=('java-runtime>=6')
14 conflicts=('phpstorm')
15 source=(http://download.jetbrains.com/webide/PhpStorm-EAP-$pkgver.tar.gz)
16 md5sums=('b42ae3954a6593a4870e72cc77732808')
18 build() {
19   cd ${srcdir}
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
26   fi
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
31   fi
34 cat <<EOF
35 [Desktop Entry]
36 Version=${pkgver}
37 Name=PhpStorm
38 Icon=phpstorm
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
42 Terminal=false
43 Type=Application
44 Categories=Development
45 EOF
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