# Maintainer: danyf90 # Contributor: Philipp 'TamCore' B. # Contributor: Jakub Schmidtke # Contributor: Christoph Brill # Contributor: Lubomir 'Kuci' Kucera # Contributor: Tad Fisher pkgname=android-studio pkgver=2.2.3.0 pkgrel=1 _build=145.3537739 pkgdesc="The official Android IDE (Stable branch)" arch=('i686' 'x86_64') url="http://tools.android.com/" license=('APACHE') makedepends=('unzip') depends=('alsa-lib' '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") sha1sums=('172c9b01669f2fe46edcc16e466917fac04c9a7f' '357845775f3e2eb53c03ba96757c6b1e2c8baeb6') if [ "$CARCH" = "i686" ]; then depends+=('java-environment') fi package() { cd $srcdir/$pkgname # Install the application install -d $pkgdir/{opt/$pkgname,usr/bin} cp -a bin gradle lib jre plugins $pkgdir/opt/$pkgname ln -s /opt/android-studio/bin/studio.sh $pkgdir/usr/bin/android-studio # 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 }