blob: 96a5dc6b9448627de3bc285d751b54f8a4723939 (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
# Maintainer: Yurii Kolesnykov <root@yurikoles.com>
# Based on aur/android-studio: Kordian Bruck <k@bruck.me>
# Based on aur/android-studio-canary: tilal6991 <lalitmaganti@gmail.com>, vanpra <pranavmaganti@gmail.com>
# Contributor: Tad Fisher <tadfisher at gmail dot com>
PKGEXT='.pkg.tar'
_pkgname=android-studio
pkgname="${_pkgname}-beta"
pkgver=2022.1.1.12
pkgrel=1
pkgdesc='The Official Android IDE (Beta branch)'
arch=('i686' 'x86_64')
url='https://developer.android.com/studio/preview'
license=('APACHE')
makedepends=('unzip' 'zip')
depends=(
'fontconfig'
'freetype2'
'libxrender'
'libxtst'
'which'
)
optdepends=(
'lib32-gcc-libs: for aapt and mksdcard'
'lib32-zlib: for aapt'
'alsa-lib: emulator support'
'dbus: emulator support'
'expat: emulator support'
'git: for flutter'
'glib2: GTK+ look and feel'
'gtk2: GTK+ look and feel'
'gvfs: GTK+ look and feel'
'libX11: emulator support'
'libgl: emulator support'
'libpulseaudio: emulator support'
'libuuid: emulator support'
'libxcb: emulator support'
'libxcomposite: emulator support'
'libxcursor: emulator support'
'libxdamage: emulator support'
'libxfixes: emulator support'
'nspr: emulator support'
'nss: emulator support'
'systemd: emulator support'
'xorg-setxkbmap: emulator support'
'ncurses5-compat-libs: native gdb support'
)
options=('!strip')
source=("https://redirector.gvt1.com/edgedl/android/studio/ide-zips/${pkgver}/${_pkgname}-${pkgver}-linux.tar.gz"
"${pkgname}.desktop"
"license.html")
sha256sums=('f224853c7d0f4d0933575b7c6c4abb081b4e53ca737670ff3eba557203e73ba4'
'c4a15624eb258acbe119567b044f4a54be4ebb41f05e6f6cb4d941d130dc714f'
'6c4ae36e7e336f833de7d6151a4e1bb1d0133affeba9cef86f1190e0637128d1')
if [ "${CARCH}" = "i686" ]; then
depends+=('java-environment')
fi
build() {
cd "${_pkgname}"
# Change the product name to produce a unique WM_CLASS attribute
mkdir -p idea
unzip -p lib/resources.jar idea/AndroidStudioApplicationInfo.xml \
| sed "s/\"Studio\"/\"Studio Beta\"/" > idea/AndroidStudioApplicationInfo.xml
zip -r lib/resources.jar idea
rm -r idea
}
package() {
cd "${_pkgname}"
# Install the application
install -d "${pkgdir}"/{opt/"${pkgname}",usr/bin}
cp -a * "${pkgdir}/opt/${pkgname}/"
ln -s "/opt/${pkgname}/bin/studio.sh" "${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"
}
|