Advertisement
Guest User

Untitled

a guest
May 18th, 2021
3,409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.98 KB | None | 0 0
  1. # Co-Maintainer: tilal6991 <lalitmaganti@gmail.com>
  2. # Co-Maintainer: vanpra <pranavmaganti@gmail.com>
  3. # Contributor: danyf90 <daniele.formichelli@gmail.com>
  4. # Contributor: Philipp 'TamCore' B. <philipp [at] tamcore [dot] eu>
  5. # Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
  6. # Contributor: Christoph Brill <egore911-at-gmail-dot-com>
  7. # Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
  8. # Contributor: Tad Fisher <tadfisher at gmail dot com>
  9.  
  10. pkgname=android-studio-canary
  11. pkgver=2021.1.1.1
  12. pkgrel=1
  13. pkgdesc="The Official Android IDE (Canary branch)"
  14. arch=('i686' 'x86_64')
  15. url="http://tools.android.com/"
  16. license=('APACHE')
  17. makedepends=('unzip' 'zip')
  18. depends=('freetype2' 'libxrender' 'libxtst')
  19. optdepends=('gtk2: GTK+ look and feel'
  20. 'libgl: emulator support')
  21. options=('!strip')
  22. source=("https://redirector.gvt1.com/edgedl/android/studio/ide-zips/$pkgver/android-studio-$pkgver-linux.tar.gz"
  23. "$pkgname.desktop")
  24. sha256sums=('954e25cb849f2b512109d88d7eea1f973d9412cd485469ca380171bfd0ac5b29'
  25. '60edb7937f6c0fd1ad724574ff3c63fa69cedd2fdfcedf788f39a443c76743b6')
  26.  
  27. if [ "$CARCH" = "i686" ]; then
  28. depends+=('java-environment')
  29. fi
  30.  
  31. package() {
  32. cd $srcdir/android-studio
  33.  
  34. # Change the product name to produce a unique WM_CLASS attribute.
  35. mkdir -p idea
  36. unzip -p lib/resources.jar idea/AndroidStudioApplicationInfo.xml \
  37. | sed "s/\"Studio\"/\"Studio Canary\"/" >idea/AndroidStudioApplicationInfo.xml
  38. zip -r lib/resources.jar idea
  39. rm -r idea
  40.  
  41. # Install the application.
  42. install -d $pkgdir/{opt/$pkgname,usr/bin}
  43. cp -a bin lib jre license plugins product-info.json build.txt LICENSE.txt NOTICE.txt $pkgdir/opt/$pkgname
  44. ln -s /opt/$pkgname/bin/studio.sh $pkgdir/usr/bin/$pkgname
  45.  
  46. # Add the icon and desktop file.
  47. install -Dm644 bin/studio.png $pkgdir/usr/share/pixmaps/$pkgname.png
  48. install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
  49.  
  50. chmod -R ugo+rX $pkgdir/opt
  51. }
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement