-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android-studio: update to 2022.3.1.18, orphan
- Loading branch information
1 parent
1db3f9a
commit bbebe57
Showing
2 changed files
with
39 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,73 @@ | ||
# Template file for 'android-studio' | ||
pkgname=android-studio | ||
version=4.1.3 | ||
version=2022.3.1.18 | ||
revision=1 | ||
# _studio_build and _studio_rev are for downloading the zip from dl.google.com | ||
# https://developer.android.com/studio/#resources as of 2018-07-12 | ||
_studio_build=201.7199119 | ||
_studio_rev=0 | ||
archs="x86_64 i686" | ||
archs="x86_64" | ||
hostmakedepends="tar" | ||
depends="virtual?libGL" | ||
short_desc="Official Android IDE" | ||
maintainer="Jordyn Carattini <[email protected]>" | ||
maintainer="Orphaned <[email protected]>" | ||
license="Apache-2.0" | ||
homepage="http://tools.android.com" | ||
# changelog="https://developer.android.com/studio/releases/index.html" | ||
distfiles="https://dl.google.com/dl/android/studio/ide-zips/${version}.${_studio_rev}/android-studio-ide-${_studio_build}-linux.tar.gz" | ||
checksum=f599749ca47cda06d392e2764017c8a8a0c7b963a6a88ed494b432bece7cbc1b | ||
distfiles="https://dl.google.com/dl/android/studio/ide-zips/${version}/android-studio-${version}-linux.tar.gz" | ||
checksum=24215e1324a6ac911810b2cc1afb2d735cf745dfbc06918a42b8d6fbc6bf7433 | ||
repository=nonfree | ||
restricted=yes | ||
python_version=2 | ||
nopie=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/perfetto/x86_64/traced_probes | ||
/opt/android-studio/plugins/android/resources/perfetto/x86_64/perfetto | ||
/opt/android-studio/plugins/android/resources/perfetto/x86_64/traced | ||
/opt/android-studio/plugins/android/resources/perfetto/x86_64/libperfetto.so | ||
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/traced_probes | ||
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/perfetto | ||
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/traced | ||
/opt/android-studio/plugins/android/resources/perfetto/arm64-v8a/libperfetto.so | ||
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/traced_probes | ||
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/perfetto | ||
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/traced | ||
/opt/android-studio/plugins/android/resources/perfetto/armeabi-v7a/libperfetto.so | ||
/opt/android-studio/plugins/android/resources/perfetto/x86/traced_probes | ||
/opt/android-studio/plugins/android/resources/perfetto/x86/perfetto | ||
/opt/android-studio/plugins/android/resources/perfetto/x86/traced | ||
/opt/android-studio/plugins/android/resources/perfetto/x86/libperfetto.so | ||
/opt/android-studio/plugins/android/resources/simpleperf/armeabi-v7a/simpleperf | ||
/opt/android-studio/plugins/android/resources/simpleperf/x86/simpleperf | ||
/opt/android-studio/plugins/android/resources/simpleperf/x86_64/simpleperf | ||
/opt/android-studio/plugins/android/resources/simpleperf/arm64-v8a/simpleperf | ||
/opt/android-studio/plugins/android/resources/installer/x86/installer | ||
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/arm64-v8a/installer | ||
/opt/android-studio/plugins/android/resources/installer/test-installer | ||
/opt/android-studio/plugins/android/resources/installer/armeabi-v7a/installer | ||
/opt/android-studio/plugins/android/resources/transport/native/agent/arm64-v8a/libjvmtiagent.so | ||
/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/native/agent/x86_64/libjvmtiagent.so | ||
/opt/android-studio/plugins/android/resources/transport/armeabi-v7a/transport | ||
/opt/android-studio/plugins/android/resources/transport/x86/transport | ||
/opt/android-studio/plugins/android/resources/transport/arm64-v8a/transport | ||
/opt/android-studio/plugins/android/lib/libwebp_jni.so | ||
/opt/android-studio/plugins/android/lib/libwebp_jni64.so" | ||
/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.10/lib-dynload/_curses.cpython-310-x86_64-linux-gnu.so | ||
/opt/android-studio/plugins/android-ndk/resources/lldb/lib/python3.10/lib-dynload/_curses_panel.cpython-310-x86_64-linux-gnu.so" | ||
|
||
do_install() { | ||
vmkdir opt/${pkgname} | ||
vcopy bin opt/${pkgname}/ | ||
vcopy lib opt/${pkgname}/ | ||
vcopy jre 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.sh ${DESTDIR}/usr/bin/android-studio | ||
|
||
# The version of host-side simpleperf bundled with Android Studio (as of 3.4.2) requires | ||
# libncurses.so.5, which is not provided by Void Linux. However, as host-side simpleperf | ||
# parsing is a fairly recent addition, we can just disable it... | ||
|
||
rm -r ${DESTDIR}/opt/android-studio/plugins/android/resources/simpleperf/linux-x86_64 | ||
echo "-Dprofiler.cpu.simpleperf.host=false" >> ${DESTDIR}/opt/android-studio/bin/studio.vmoptions | ||
echo "-Dprofiler.cpu.simpleperf.host=false" >> ${DESTDIR}/opt/android-studio/bin/studio64.vmoptions | ||
|
||
vinstall "${FILESDIR}/android-studio.desktop" 644 usr/share/applications/ | ||
chmod -R ugo+rX ${DESTDIR}/opt | ||
} |