aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed01a32a513f92b8b307ab324f1eea51bf0de516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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: Scott Warner <Tortel1210-at-gmail-dot-com>

pkgname=android-studio-for-platform
pkgver=2023.2.1.20
pkgrel=1
pkgdesc="The official Android IDE for Platform Development"
arch=('x86_64')
url="https://developer.android.com/studio/platform"
license=('APACHE')
makedepends=()
depends=('alsa-lib' 'freetype2' 'libxrender' 'libxtst' 'which')
optdepends=('gtk2: GTK+ look and feel'
            'libgl: emulator support'
            'ncurses5-compat-libs: native debugger support')
options=('!strip')

# https://dl.google.com/android/asfp/asfp-2023.1.1.19-linux.deb
source=("https://dl.google.com/android/asfp/asfp-$pkgver-linux.deb"
        "$pkgname.desktop"
        "license.html")
sha256sums=('70cfe9912821a8b514bc9545fce54b0cec550499492c7f207b56df66d0d47a06'
            '7d8615a69925b0685775546873997bdb967426e24b4fc265d120a04dc8367dda'
            '9a7563f7fb88c9a83df6cee9731660dc73a039ab594747e9e774916275b2e23e')

package() {
  bsdtar -xf data.tar.xz -C "$pkgdir/"

  # 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-for-platform/bin/studio.sh $pkgdir/usr/bin/$pkgname

  # Copy licenses
  install -Dm644 $pkgdir/opt/$pkgname/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 $pkgdir/opt/$pkgname/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
}