Advertisement
Guest User

phpstorm-aur-fixed

a guest
Sep 13th, 2019
588
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.75 KB | None | 0 0
  1. # Maintainer: Frederik Schwan <frederik dot schwan at linux dot com>
  2.  
  3. pkgbase=phpstorm
  4. pkgname=(phpstorm phpstorm-jre)
  5. pkgver=2019.2.2
  6. buildnumber=192.6603.42
  7. pkgrel=2
  8. pkgdesc='Lightweight and Smart PHP IDE'
  9. arch=('x86_64' 'i686')
  10. license=('Commercial')
  11. url='https://www.jetbrains.com/phpstorm/'
  12. makedepends=('rsync')
  13. options=('!strip')
  14. source=(https://download.jetbrains.com/webide/PhpStorm-${pkgver%b*}.tar.gz
  15.         jetbrains-phpstorm.desktop)
  16. sha512sums=('25979367e999ad7c5fd7f1c9763156370d52f36bf41d911969f33f2e32bf11a87792b091feab474b43039e64433c10c7ca6704868b0f152041d92c297ad7ba31'
  17.             'b10edd04a7d48641bec7a9e23037510b426acb5a3059267b2081ec0fce41272d8de413f0b4c1dddd3387bb0ce330c48b3f7894f4817973cd6d32a74a14af3528')
  18.  
  19. package_phpstorm() {
  20.   optdepends=('phpstorm-jre: JetBrains custom Java Runtime (Recommended)'
  21.               'java-runtime: JRE - Required if phpstorm-jre is not installed'
  22.               'gnome-keyring: save login/deployment credentials safely'
  23.               'java-openjfx: rendering Markdown files')
  24.  
  25.   install -d -m 755 "${pkgdir}/opt/"
  26.   install -d -m 755 "${pkgdir}/usr/bin/"
  27.   install -d -m 755 "${pkgdir}/usr/share/applications/"
  28.   install -d -m 755 "${pkgdir}/usr/share/pixmaps/"
  29.  
  30.   rsync -rtl "${srcdir}/PhpStorm-${buildnumber}/" "${pkgdir}/opt/${pkgbase}" --exclude=/jbr
  31.  
  32.   ln -s "/opt/${pkgbase}/bin/${pkgbase}.sh" "${pkgdir}/usr/bin/${pkgbase}"
  33.   install -D -m 644 "${srcdir}/jetbrains-${pkgbase}.desktop" "${pkgdir}/usr/share/applications/"
  34.   install -D -m 644 "${pkgdir}/opt/${pkgbase}/bin/${pkgbase}.png" "${pkgdir}/usr/share/pixmaps/${pkgbase}.png"
  35. }
  36.  
  37. package_phpstorm-jre() {
  38.   install -d -m 755 "${pkgdir}/opt/${pkgbase}"
  39.   rsync -rtl "${srcdir}/PhpStorm-${buildnumber}/jbr" "${pkgdir}/opt/${pkgbase}"
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement