Skip to content

Instantly share code, notes, and snippets.

@marcolussetti
Last active March 4, 2017 23:48
Show Gist options
  • Save marcolussetti/35110b7490272ef813a6d0d08a7a8890 to your computer and use it in GitHub Desktop.
Save marcolussetti/35110b7490272ef813a6d0d08a7a8890 to your computer and use it in GitHub Desktop.
Downgrading Android Studio to 2.2.3 on Arch Linux
# Maintainer: danyf90 <daniele.formichelli@gmail.com>
# Contributor: Philipp 'TamCore' B. <philipp [at] tamcore [dot] eu>
# Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
# Contributor: Christoph Brill <egore911-at-gmail-dot-com>
# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
# Contributor: Tad Fisher <tadfisher at gmail dot com>
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/$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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment