# Maintainer: tilal6991 # Contributor: danyf90 # Contributor: Philipp 'TamCore' B. # Contributor: Jakub Schmidtke # Contributor: Christoph Brill # Contributor: Lubomir 'Kuci' Kucera pkgname=android-studio-canary _pkgname=android-studio pkgver=2.2.0a7 _pkgver=2.2.0.6 pkgrel=1 _build=145.3111935 pkgdesc="The Official Android IDE. Canary branch" arch=('i686' 'x86_64') url="http://developer.android.com/sdk/installing/studio.html" license=('APACHE') depends=('java-environment' 'python' 'gtk2') makedepends=('unzip') oidprovides=("android-studio=$pkgver") conflicts=('android-studio' 'android-studio-beta' 'android-studio-dev') options=('!strip') install=$pkgname.install source=("https://dl.google.com/dl/android/studio/ide-zips/$_pkgver/android-studio-ide-$_build-linux.zip" "$_pkgname.desktop") sha1sums=('b85c4e27401f7f18af19e39e453cca8575041dbb' 'baed66cebe2b372700f436b93022a52cbff313be') if [ "$CARCH" = "x86_64" ]; then depends+=('lib32-fontconfig' 'lib32-libxrender' 'lib32-mesa') else depends+=('fontconfig' 'libxrender' 'mesa') fi prepare() { cd $srcdir/$_pkgname # extract the application icon unzip -qo lib/resources.jar artwork/icon_AS_128.png # enable anti aliasing echo "-Dswing.aatext=true" >> studio.vmoptions echo "-Dswing.aatext=true" >> studio64.vmoptions } package() { cd $srcdir/$_pkgname # application stuff install -d $pkgdir/{opt/$_pkgname,usr/bin} cp -a bin lib plugins $pkgdir/opt/$_pkgname ln -s /opt/android-studio/bin/studio.sh $pkgdir/usr/bin/android-studio # starter stuff install -Dm655 artwork/icon_AS_128.png $pkgdir/usr/share/pixmaps/$_pkgname.png install -Dm655 $srcdir/$_pkgname.desktop $pkgdir/usr/share/applications/$_pkgname.desktop chmod -R ugo+rX $pkgdir/opt }