android-studio: devendor desktop file

This commit is contained in:
classabbyamp 2024-06-06 13:18:09 -04:00
parent c5a4149f02
commit ed776488b1
No known key found for this signature in database
GPG key ID: 6BE0755918A4C7F5
2 changed files with 14 additions and 9 deletions

View file

@ -1,7 +0,0 @@
[Desktop Entry]
Type=Application
Name=Android Studio
Exec=android-studio
Icon=/opt/android-studio/bin/studio.png
Terminal=false
Categories=Development

View file

@ -1,7 +1,7 @@
# Template file for 'android-studio'
pkgname=android-studio
version=2023.3.1.18
revision=1
revision=2
archs="x86_64"
hostmakedepends="tar"
short_desc="Official Android IDE"
@ -57,6 +57,18 @@ skiprdeps="/opt/android-studio/plugins/android/resources/process-tracker-agent/n
/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"
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}/
@ -68,6 +80,6 @@ do_install() {
vmkdir usr/bin
ln -s /opt/android-studio/bin/studio.sh ${DESTDIR}/usr/bin/android-studio
vinstall "${FILESDIR}/android-studio.desktop" 644 usr/share/applications/
vinstall entry.desktop 644 usr/share/applications android-studio.desktop
chmod -R ugo+rX ${DESTDIR}/opt
}