public
Last active

Conflict free PhpStorm-eap PKGBUILD. Has been included in https://aur.archlinux.org/packages/phpstorm-eap/

  • Download Gist
phpstorm-eap-noconflict
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
# Maintainer: Eduard Kracmar <edke.kraken[at]gmail[dot]com>
# Contributor: D. Can Celasun <dcelasun[at]gmail[dot]com>
# Contributor: Slava Volkov <sv99sv[at]gmail[dot]com>
 
pkgname=phpstorm-eap-noconflict
_pkgname=PhpStorm # Directory name in the tar file
pkgver=122.864
pkgbuild=122.864
pkgrel=2
pkgdesc="Lightweight and Smart PHP IDE. 30-day free trial."
arch=('i686' 'x86_64')
url="http://www.jetbrains.com/phpstorm/"
license=('custom')
depends=('java-runtime>=6')
source=(http://download.jetbrains.com/webide/PhpStorm-EAP-$pkgbuild.tar.gz)
#source=(http://download.jetbrains.com/webide/PhpStorm-5.0.4.tar.gz)
md5sums=('ab5b8bbde862deaab3d40fa556833aef')
 
build() {
cd ${srcdir}
mkdir -p ${pkgdir}/opt/${pkgname} || return 1
cp -R ${srcdir}/${_pkgname}-${pkgbuild}/* ${pkgdir}/opt/${pkgname} || return 1
# cp -R ${srcdir}/${_pkgname}-${pkgver}/* ${pkgdir}/opt/${pkgname} || return 1
if [[ $CARCH = 'i686' ]]; then
rm -f ${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux64.so
rm -f ${pkgdir}/opt/${pkgname}/bin/fsnotifier64
fi
if [[ $CARCH = 'x86_64' ]]; then
rm -f ${pkgdir}/opt/${pkgname}/bin/libyjpagent-linux.so
rm -f ${pkgdir}/opt/${pkgname}/bin/fsnotifier
fi
 
(
cat <<EOF
[Desktop Entry]
Version=${pkgver}
Name=PhpStorm EAP
Icon=phpstorm-eap
GenericName=Lightweight and Smart PHP IDE
Comment=Lightweight and Smart PHP IDE 30-day free trial
Exec=/opt/${pkgname}/bin/phpstorm.sh
Terminal=false
Type=Application
Categories=Development
EOF
) > ${startdir}/phpstorm-eap.desktop
 
mkdir -p ${pkgdir}/usr/bin/ || return 1
mkdir -p ${pkgdir}/usr/share/applications/ || return 1
mkdir -p ${pkgdir}/usr/share/pixmaps/ || return 1
mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
install -m 644 ${startdir}/phpstorm-eap.desktop ${pkgdir}/usr/share/applications/
install -m 644 ${pkgdir}/opt/${pkgname}/bin/webide.png ${pkgdir}/usr/share/pixmaps/phpstorm-eap.png
install -m 644 ${srcdir}/${_pkgname}-${pkgbuild}/license/${_pkgname}_license.txt ${pkgdir}/usr/share/licenses/${pkgname}/${_pkgname}_license.txt
ln -s /opt/$pkgname/bin/phpstorm.sh "$pkgdir/usr/bin/phpstorm-eap"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.