Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
00f2964e
Commit
00f2964e
authored
Mar 31, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: add android-studio
parent
ecb01c27
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
83 additions
and
0 deletions
+83
-0
android-studio.sh
play.d/android-studio.sh
+18
-0
android-studio.sh
repack.d/android-studio.sh
+65
-0
No files found.
play.d/android-studio.sh
0 → 100755
View file @
00f2964e
#!/bin/sh
PKGNAME
=
android-studio
SUPPORTEDARCHES
=
"x86_64"
VERSION
=
"
$2
"
DESCRIPTION
=
'The official Android IDE'
URL
=
"https://developer.android.com/studio"
.
$(
dirname
$0
)
/common.sh
if
[
"
$VERSION
"
=
"*"
]
;
then
PKGURL
=
"
$(
eget
--list
--latest
"https://developer.android.com/studio"
$PKGNAME
-
$VERSION
-linux
.tar.gz
)
"
else
PKGURL
=
"https://redirector.gvt1.com/edgedl/android/studio/ide-zips/
$VERSION
/
$PKGNAME
-
$VERSION
-linux.tar.gz"
fi
install_pkgurl
repack.d/android-studio.sh
0 → 100755
View file @
00f2964e
#!/bin/sh -x
# It will be run with two args: buildroot spec
BUILDROOT
=
"
$1
"
SPEC
=
"
$2
"
.
$(
dirname
$0
)
/common.sh
subst
"s|^Group:.*|Group: Development/C|"
$SPEC
#subst "s|^License: unknown$|License: GPLv2|" $SPEC
subst
"s|^URL:.*|URL: https://developer.android.com/studio|"
$SPEC
subst
"s|^Summary:.*|Summary: The official Android IDE|"
$SPEC
move_to_opt
"/android-studio*"
orig
=
"studio"
# use native launcher as recommended
add_bin_link_command
$PRODUCT
$PRODUCTDIR
/bin/
$orig
# file fieldstring
get_json_value
()
{
[
-s
"
$1
"
]
||
fatal
"Missed
$1
file"
epm tool json
-b
<
"
$1
"
|
grep
-m1
-F
"
$2
"
|
sed
-e
's|.*[[:space:]]||'
|
sed
-e
's|"||g'
}
wmClass
=
"
$(
get_json_value .
$PRODUCTDIR
/product-info.json
'["launch",0,"startupWmClass"]'
)
"
[
-n
"
$wmClass
"
]
||
wmClass
=
"
$PRODUCT
"
cat
<<
EOF
| create_file /usr/share/applications/
$wmClass
.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=The official Android IDE
Comment=Android Studio
Exec=
$PRODUCT
%f
Icon=
$PRODUCT
Terminal=false
StartupNotify=true
StartupWMClass=
$wmClass
Categories=Development;IDE;
EOF
install_file
$PRODUCTDIR
/bin/
$orig
.png /usr/share/pixmaps/
$PRODUCT
.png
install_file
$PRODUCTDIR
/bin/
$orig
.svg /usr/share/pixmaps/
$PRODUCT
.svg
# kind of hack
subst
's|%dir "'
$PRODUCTDIR
'/"||'
$SPEC
subst
's|%dir "'
$PRODUCTDIR
'/bin/"||'
$SPEC
subst
's|%dir "'
$PRODUCTDIR
'/lib/"||'
$SPEC
subst
's|%dir "'
$PRODUCTDIR
'/plugins/"||'
$SPEC
#subst 's|%dir "'$PRODUCTDIR'/plugins/webp"||' $SPEC
#subst 's|%dir "'$PRODUCTDIR'/plugins/webp/lib"||' $SPEC
pack_dir
$PRODUCTDIR
/
pack_dir
$PRODUCTDIR
/bin/
pack_dir
$PRODUCTDIR
/lib/
pack_dir
$PRODUCTDIR
/plugins/
#pack_dir $PRODUCTDIR/plugins/webp
#pack_dir $PRODUCTDIR/plugins/webp/lib
ignore_library_path
$PRODUCTDIR
/plugins/android/resources
add_libs_requires
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment