-
Notifications
You must be signed in to change notification settings - Fork 6
/
PKGBUILD
95 lines (86 loc) · 3.25 KB
/
PKGBUILD
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
89
90
91
92
93
94
95
# Maintainer: Yurii Kolesnykov <[email protected]>
#
# Based on aur/android-studio by Kordian Bruck <[email protected]>
# Based on aur/android-studio-canary by tilal6991 <[email protected]>, vanpra <[email protected]>
# Contributor: Tad Fisher <tadfisher at gmail dot com>
#
# Pull requests are welcome here:https://github.com/yurikoles-aur/android-studio-beta
# SHA-256 Checksums and binary links can be found here: https://developer.android.com/studio/archive
PKGEXT='.pkg.tar'
_pkgname=android-studio
pkgname="${_pkgname}-beta"
pkgver=2024.2.1.10
pkgrel=1
pkgdesc='The Official Android IDE (Beta branch)'
arch=('i686' 'x86_64')
url='https://developer.android.com/studio/preview'
license=('APACHE')
depends=(
'alsa-lib'
'fontconfig'
'freetype2'
'gcc-libs'
'bzip2'
'libedit'
'libxcrypt-compat'
'libxml2'
'libxrender'
'libxtst'
'python'
'which'
)
makedepends=('zip')
optdepends=(
'android-emulator'
'android-ndk: to implement parts of your android app in native code'
'android-platform'
'android-sdk'
'android-sdk-build-tools: aapt, aapt2, aidl, apksigner, bcc_compat, d8, dexdump, dx, lld, llvm-rs-cc, mainDexClases, split-select, zipalign'
'android-sdk-cmdline-tools-latest: apkanalyzer, avdmanager, lint, retrace, screenshot2, sdkmanager'
'android-sdk-platform-tools: adb, dmtracedump, e2fsdroid, etc1tool, fastboot, hprof-conv, make_f2fs, make_f2fs_casefold, mke2fs, sload_f2fs, sqlite3, systrace'
'android-support-repository'
'android-tools: adb, fastboot, e2fsdroid,mke2fs.android, mkbootimg, ext2simg.'
'e2fsprogs'
'git: for flutter'
'glib2: GTK+ look and feel'
'gtk2: GTK+ look and feel'
'gvfs: GTK+ look and feel'
'lib32-gcc-libs: for aapt and mksdcard'
'lib32-zlib: for aapt'
'ncurses5-compat-libs: native gdb support'
'usbutils'
)
provides=("android-studio=${pkgver}")
options=('!strip')
source=("https://redirector.gvt1.com/edgedl/android/studio/ide-zips/${pkgver}/${_pkgname}-${pkgver}-linux.tar.gz"
"${pkgname}.desktop"
"license.html")
sha256sums=('aec225c19e50d7a254a2cf772613607984f73521982773cfdaf98c5a72253e3f'
'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
bsdtar -Oxf 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"
}