summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4a0f0ead0edcc36bbda3a4a84a1ac01a1ff0fc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Maintainer: ferreum <code at ferreum dot de>

pkgname=jdk-android-studio
pkgver=4
pkgrel=2
pkgdesc="Integrate android-studio provided JDK with archlinux-java"
# android-studio package depends on external java-environment on i686
arch=(x86_64)
url="https://developer.android.com/studio"
license=(APACHE)
depends=('android-studio>=2024.2.1.1' java-environment-common java-runtime-common)
provides=(java-runtime=21 java-runtime-openjdk=21
          java-environment=21 java-environment-openjdk=21)
install=jdk-android-studio.install

package() {
  local base_pkgname=android-studio
  install -d "${pkgdir}/usr/lib/jvm/$base_pkgname"
  ln -s "/opt/${base_pkgname}/jbr/"{bin,conf,legal,lib,release} \
    "${pkgdir}/usr/lib/jvm/$base_pkgname/"
}

# vim:set ts=2 sw=2 et: