# Co-Maintainer: tilal6991 # Co-Maintainer: vanpra # Contributor: danyf90 # Contributor: Philipp 'TamCore' B. # Contributor: Jakub Schmidtke # Contributor: Christoph Brill # Contributor: Lubomir 'Kuci' Kucera # Contributor: Tad Fisher pkgname=android-studio-canary pkgver=3.0.0.1 pkgrel=1 _build=171.4041253 pkgdesc="The Official Android IDE (Canary branch)" arch=('i686' 'x86_64') url="http://tools.android.com/" license=('APACHE') makedepends=('unzip') depends=('freetype2' 'libxrender' 'libxtst') optdepends=('gtk2: GTK+ look and feel' 'libgl: emulator support') options=('!strip') source=("https://dl.google.com/dl/android/studio/ide-zips/$pkgver/android-studio-ide-$_build-linux.zip" "$pkgname.desktop") sha256sums=('ae6ba335ef007775ce4c957e381089e1a4d70953f84f7bd41e794c8cfd8a0d75' '698430d3a2b3d6315ae22827e59c89e42c030089499f4e06bc32b3c92b796e35') if [ "$CARCH" = "i686" ]; then depends+=('java-environment') fi package() { cd $srcdir/android-studio # Install the application. install -d $pkgdir/{opt/$pkgname,usr/bin} cp -a bin gradle lib jre plugins $pkgdir/opt/$pkgname ln -s /opt/$pkgname/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 }