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