[aur-requests] [PRQ#4894] Merge Request for phpstorm-eap
notify at aur.archlinux.org
notify at aur.archlinux.org
Thu Feb 25 18:35:38 UTC 2016
madlexx [1] filed a merge request for phpstorm-eap [2]:
# Maintainer: Sebastian Krebs <sebastian[at]krebs[dot]one>
# Contributor: Yakir Sitbon <kingyes1[at]gmail[dot]com>
# Contributor: 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>
# Contributor: Patrik Votoček <patrik[at]votocek[dot]cz>
pkgname=phpstorm-eap
_pkgname=PhpStorm # Directory name in the tar file
pkgbuild=145.61.14
pkgver=${pkgbuild}
pkgrel=3
pkgdesc="Lightweight and Smart PHP IDE. 30-day free trial."
arch=('i686' 'x86_64')
options=(!strip)
url="http://www.jetbrains.com/phpstorm/"
license=('custom')
depends=('java-environment>=8')
source=(http://download.jetbrains.com/webide/PhpStorm-
EAP-145.61.14.tar.gz)
sha256sums=('7a61b005adcdd75f5341443dcec4e42f68b37863b16eb0ec896376268f64fce5')
package() {
cd ${srcdir}
mkdir -p ${pkgdir}/opt/${pkgname} || return 1
cp -R ${srcdir}/${_pkgname}-${pkgbuild}/* ${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}
Type=Application
Name=PhpStorm-EAP
Exec="/opt/${pkgname}/bin/phpstorm.sh" %f
Icon=phpstorm-eap
Comment=Lightweight and Smart PHP IDE 30-day free trial
GenericName=Lightweight and Smart PHP IDE
Categories=Development;IDE;
Terminal=false
StartupNotify=true
StartupWMClass=jetbrains-phpstorm
EOF
) > ${startdir}/${pkgname}.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
ln -s /opt/$pkgname/bin/phpstorm.sh "$pkgdir/usr/bin/phpstorm-eap"
}
[1] https://aur.archlinux.org/account/madlexx/
[2] https://aur.archlinux.org/pkgbase/phpstorm-eap/
More information about the aur-requests
mailing list