# Mantainer: Daniele Basso # Maintainer: Kordian Bruck # Contributor: danyf90 # Contributor: Philipp 'TamCore' B. # Contributor: Jakub Schmidtke # Contributor: Christoph Brill # Contributor: Lubomir 'Kuci' Kucera # Contributor: Tad Fisher # Contributor: Philippe Hürlimann # Contributor: Julian Raufelder # Contributor: Dhina17 pkgname=android-studio-system pkgver=2023.2.1.23 pkgrel=1 pkgdesc="The official Android IDE (Stable branch)" arch=('x86_64') url="https://developer.android.com/studio" license=('APACHE') makedepends=() depends=('alsa-lib' 'libxtst' 'java-environment=17') optdepends=('ncurses5-compat-libs: native debugger support') options=('!strip') # Removing it is a bit more violent but it removes 90MB of files... source=("https://dl.google.com/dl/android/studio/ide-zips/$pkgver/android-studio-$pkgver-linux.tar.gz" "android-studio.desktop" "license.html") b2sums=('b8125976c7cb3f02df74f138eadec733f0f0aec205cb240622ef093997216e5adb5eb0fd53f5ba059eadc72420f5d94868372c6846bd4926fba733fb7dac5f39' '16940866032d710ce995cc6bb0b994875215df0f6191b09a3ece5d6c5750c4fb3d430c683f545154eeceecad10d70333d59302fe6c5efd97c3fc9e66f3009dca' '43b288fb81656cd72826a52620e41fbd0daa65d37246cb5b7dbff9c326022eabf18344513517b16134b557d6ae86535f44f863ebd06d6fe0410f92117c1a8c67') provides=("android-studio") conflicts=("android-studio") package() { cd $srcdir/android-studio # Install the application install -dm 755 $pkgdir/usr/{bin,share/{licenses,pixmaps,android-studio}} cp -a bin lib plugins build.txt product-info.json $pkgdir/usr/share/android-studio ln -s /usr/share/android-studio/bin/studio.sh $pkgdir/usr/bin/android-studio ln -s /usr/lib/jvm/java-17-openjdk/ $pkgdir/usr/share/android-studio/jbr # Copy licenses install -Dm644 LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" install -Dm644 $srcdir/license.html "${pkgdir}/usr/share/licenses/${pkgname}/license.html" cp -a license/* $pkgdir/usr/share/licenses/${pkgname} # Add the icon and desktop file install -Dm644 bin/studio.png $pkgdir/usr/share/pixmaps/android-studio.png install -Dm644 $srcdir/android-studio.desktop $pkgdir/usr/share/applications/android-studio.desktop }