Username: Password: Remember me
pkgname=android-studio
pkgver=3.6.2.0
pkgrel=1
_build=192.6308749
pkgdesc="The official Android IDE (Stable branch)"
arch=('x86_64')
url="http://tools.android.com/"
screenshot="https://developer.android.com/studio/images/studio-homepage-hero.jpg"
license=('Apache')
makedepends=('unzip')
depends=('alsa-lib' 'freetype2' 'libxrender' 'libxtst')
optdepends=('gtk2: GTK+ look and feel'
            'libgl: emulator support')
options=('!strip')
source=("https://redirector.gvt1.com/edgedl/android/studio/ide-zips/$pkgver/android-studio-ide-$_build-linux.tar.gz"
        "$pkgname.desktop")
sha256sums=('79c3e7069228de5db1c9252e078fcbe9b7d56cc54c8ce6f87034685b298f2413'
            '73cd2dde1d0f99aaba5baad1e2b91c834edd5db3c817f6fb78868d102360d3c4')
 
package() {
  cd $pkgname
 
  # Install the application
  install -d $pkgdir/{opt/$pkgname,usr/bin}
  cp -a bin lib jre plugins license LICENSE.txt build.txt product-info.json $pkgdir/opt/$pkgname
  ln -s /opt/android-studio/bin/studio.sh $pkgdir/usr/bin/$pkgname
 
  # Add the icon and desktop file
  install -Dm644 bin/studio.png $pkgdir/usr/share/pixmaps/$pkgname.png
  install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
 
  chmod -R ugo+rX $pkgdir/opt
}