# Maintainer: danyf90 # Contributor: Philipp 'TamCore' B. # Contributor: Jakub Schmidtke # Contributor: Christoph Brill # Contributor: Lubomir 'Kuci' Kucera pkgname=android-studio pkgver=1.4.1.0 pkgrel=2 _build=141.2343393 pkgdesc="A new Android development environment based on IntelliJ IDEA." arch=('i686' 'x86_64') url="http://developer.android.com/sdk/installing/studio.html" license=('APACHE') depends=('java-environment' 'python' 'ttf-font') makedepends=('unzip') optdepends=('android-google-repository' 'android-sdk' 'android-sdk-platform-tools' 'android-sdk-build-tools' 'android-support' 'android-support-repository') conflicts=('android-studio-beta' 'android-studio-dev' 'android-studio-canary') options=('!strip') install=$pkgname.install source=("https://dl.google.com/dl/android/studio/ide-zips/$pkgver/android-studio-ide-$_build-linux.zip" "$pkgname.desktop") sha512sums=('370c8f934ff7cb2d4128ad228eac38fc62e5452a8645b08ddeb63ad87d684e1e4b9015feaf33098aaec4d78c99522282309bf4c95a4671b08190f9e51257caf4' '7c1ab152b3f26a0a4796c085bb7bf66aa4711a010910636c0c82a37609155c819b21a732fc3874b55e7d443c989c46f29d51ed54538795829c8eb835308b5aaa') 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 -Dm644 artwork/icon_AS_128.png $pkgdir/usr/share/pixmaps/$pkgname.png install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop chmod -R ugo+rX $pkgdir/opt }