-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathtemplate
More file actions
87 lines (82 loc) · 4.75 KB
/
template
File metadata and controls
87 lines (82 loc) · 4.75 KB
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
# Template file for 'android-studio'
pkgname=android-studio
version=2025.3.3.6
revision=1
_version_description="panda3"
archs="x86_64"
hostmakedepends="tar"
depends="libbsd"
short_desc="Official Android IDE"
maintainer="Bnyro <bnyro@tutanota.com>"
license="Apache-2.0"
homepage="https://developer.android.com/studio/"
changelog="https://developer.android.com/studio/releases/"
distfiles="https://edgedl.me.gvt1.com/android/studio/ide-zips/${version}/android-studio-${_version_description}-linux.tar.gz"
checksum=341ac0fc17dbc987d0530e0cfb327125480533d6733a889f2137636becd486a5
repository=nonfree
restricted=yes
python_version=3
nostrip=yes
noshlibprovides=yes
# These files are not run or loaded on the host thus skip scanning their runtime deps
skiprdeps="/opt/android-studio/plugins/android/resources/process-tracker-agent/native/x86_64/process-tracker
/opt/android-studio/plugins/android/resources/process-tracker-agent/native/armeabi-v7a/process-tracker
/opt/android-studio/plugins/android/resources/process-tracker-agent/native/arm64-v8a/process-tracker
/opt/android-studio/plugins/android/resources/process-tracker-agent/native/x86/process-tracker
/opt/android-studio/plugins/android/resources/screen-sharing-agent/x86_64/libscreen-sharing-agent.so
/opt/android-studio/plugins/android/resources/screen-sharing-agent/armeabi-v7a/libscreen-sharing-agent.so
/opt/android-studio/plugins/android/resources/screen-sharing-agent/arm64-v8a/libscreen-sharing-agent.so
/opt/android-studio/plugins/android/resources/screen-sharing-agent/x86/libscreen-sharing-agent.so
/opt/android-studio/plugins/android/resources/installer/x86_64/installer
/opt/android-studio/plugins/android/resources/installer/armeabi-v7a/installer
/opt/android-studio/plugins/android/resources/installer/arm64-v8a/installer
/opt/android-studio/plugins/android/resources/installer/x86/installer
/opt/android-studio/plugins/android/resources/transport/x86_64/transport
/opt/android-studio/plugins/android/resources/transport/native/agent/x86_64/libjvmtiagent.so
/opt/android-studio/plugins/android/resources/transport/native/agent/armeabi-v7a/libjvmtiagent.so
/opt/android-studio/plugins/android/resources/transport/native/agent/arm64-v8a/libjvmtiagent.so
/opt/android-studio/plugins/android/resources/transport/native/agent/x86/libjvmtiagent.so
/opt/android-studio/plugins/android/resources/transport/armeabi-v7a/transport
/opt/android-studio/plugins/android/resources/transport/arm64-v8a/transport
/opt/android-studio/plugins/android/resources/transport/x86/transport
/opt/android-studio/plugins/android/resources/perfetto/x86_64/libperfetto.so
/opt/android-studio/plugins/android/resources/perfetto/x86_64/traced_probes
/opt/android-studio/plugins/android/resources/perfetto/x86_64/traced
/opt/android-studio/plugins/android/resources/perfetto/x86_64/perfetto
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/libperfetto.so
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/traced_probes
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/traced
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/perfetto
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/libperfetto.so
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/traced_probes
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/traced
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/perfetto
/opt/android-studio/plugins/android/resources/perfetto/x86/libperfetto.so
/opt/android-studio/plugins/android/resources/perfetto/x86/traced_probes
/opt/android-studio/plugins/android/resources/perfetto/x86/traced
/opt/android-studio/plugins/android/resources/perfetto/x86/perfetto
/opt/android-studio/plugins/android-ndk/resources/lldb/lib/python3.11/lib-dynload/_curses.cpython-311-x86_64-linux-gnu.so
/opt/android-studio/plugins/android-ndk/resources/lldb/lib/python3.11/lib-dynload/_curses_panel.cpython-311-x86_64-linux-gnu.so"
post_extract() {
bsdtar xf lib/app.jar entry.desktop
}
post_patch() {
vsed -i -e 's/\$NAME\$/Android Studio/' entry.desktop
vsed -i -e 's/\$ICON\$/\/opt\/android-studio\/bin\/studio.svg/' entry.desktop
vsed -i -e 's/\$SCRIPT\$/android-studio/' entry.desktop
vsed -i -e 's/\$COMMENT\$/The Drive to Develop/' entry.desktop
vsed -i -e 's/\$WM_CLASS\$/jetbrains-studio/' entry.desktop
}
do_install() {
vmkdir opt/${pkgname}
vcopy bin opt/${pkgname}/
vcopy lib opt/${pkgname}/
vcopy jbr opt/${pkgname}/
vcopy plugins opt/${pkgname}/
vcopy build.txt opt/${pkgname}/ # read as IDE version information
vcopy product-info.json opt/${pkgname}/
vmkdir usr/bin
ln -s /opt/android-studio/bin/studio ${DESTDIR}/usr/bin/android-studio
vinstall entry.desktop 644 usr/share/applications android-studio.desktop
chmod -R ugo+rX ${DESTDIR}/opt
}