Initial commit
This commit is contained in:
commit
f4ffa495f6
10 changed files with 461 additions and 0 deletions
73
PKGBUILD
Normal file
73
PKGBUILD
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
# Contributor: 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>
|
||||
# Contributor: Philippe Hürlimann <p@hurlimann.org>
|
||||
# Contributor: Julian Raufelder <aur@raufelder.com>
|
||||
# Contributor: Dhina17 <dhinalogu@gmail.com>
|
||||
# Contributor: Kordian Bruck <k@bruck.me>
|
||||
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
|
||||
|
||||
pkgname=android-studio
|
||||
pkgver=2025.1.2.11
|
||||
pkgrel=1
|
||||
pkgdesc="The official Android IDE (Stable branch)"
|
||||
arch=(
|
||||
i686
|
||||
x86_64
|
||||
)
|
||||
url="https://developer.android.com/"
|
||||
license=(
|
||||
Apache-2.0
|
||||
)
|
||||
depends=(
|
||||
alsa-lib
|
||||
freetype2
|
||||
libxrender
|
||||
libxtst
|
||||
which
|
||||
)
|
||||
optdepends=(
|
||||
'gtk2: GTK+ look and feel'
|
||||
'libgl: emulator support'
|
||||
'ncurses5-compat-libs: native debugger support'
|
||||
)
|
||||
options=(
|
||||
'!strip'
|
||||
)
|
||||
source=(
|
||||
"https://dl.google.com/dl/android/studio/ide-zips/$pkgver/android-studio-$pkgver-linux.tar.gz"
|
||||
"$pkgname.desktop"
|
||||
"license.html"
|
||||
)
|
||||
b2sums=('1b400f9459349c786f90e2f66e228729613fad98aac1b4a220a1d170a56af358ff1439a0f08da47f2862edb4cc38a1d024cd0390bf07ce42c84147c7f2b22348'
|
||||
'16940866032d710ce995cc6bb0b994875215df0f6191b09a3ece5d6c5750c4fb3d430c683f545154eeceecad10d70333d59302fe6c5efd97c3fc9e66f3009dca'
|
||||
'43b288fb81656cd72826a52620e41fbd0daa65d37246cb5b7dbff9c326022eabf18344513517b16134b557d6ae86535f44f863ebd06d6fe0410f92117c1a8c67')
|
||||
|
||||
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 lib jbr plugins license LICENSE.txt build.txt product-info.json $pkgdir/opt/$pkgname
|
||||
ln -s /opt/android-studio/bin/studio $pkgdir/usr/bin/$pkgname
|
||||
|
||||
# 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"
|
||||
|
||||
# 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
|
||||
}
|
||||
# vim: set ft=sh ts=4 sw=4 et:
|
||||
Loading…
Add table
Add a link
Reference in a new issue