mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* feat: add android-studio package
* chore: add packager metadata to spec file
* chore: add update.rhai and assist feedback
(cherry picked from commit 68a6644874)
Co-authored-by: Engels Tercero <75184282+like-engels@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "android-studio.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
%global debug_package %{nil}
|
||||
%define __requires_exclude ^/usr/libexec/android-studio/.*$
|
||||
%define __provides_exclude ^/usr/libexec/android-studio/.*$
|
||||
%global __requires_exclude ^libaaudio\\.so.*|^libandroid\\.so.*|^libmediandk\\.so.*|^liblog\\.so.*|^libc\\.so.*|^libm\\.so.*|^libdl\\.so.*|^libcrypt\\.so.*|^libstdc\\+\\+\\.so.*|^libncursesw\\.so.*|^libtinfo\\.so.*|^libnsl\\.so.*|^libpanelw\\.so.*$
|
||||
|
||||
Name: android-studio
|
||||
Version: 2025.1.2.12
|
||||
Release: 1%{?dist}
|
||||
Summary: Official IDE for Android development
|
||||
License: Apache-2.0
|
||||
Packager: like-engels <higashikataengels@icloud.com>
|
||||
URL: https://developer.android.com/studio
|
||||
Source0: https://dl.google.com/dl/android/studio/ide-zips/%{version}/android-studio-%{version}-linux.tar.gz
|
||||
|
||||
Requires: alsa-lib
|
||||
Requires: freetype
|
||||
Requires: which
|
||||
Requires: libXrender
|
||||
Requires: libXtst
|
||||
Requires: glibc
|
||||
Requires: libsecret
|
||||
|
||||
%description
|
||||
Android Studio is the official IDE for Android development, and includes everything you need to build Android apps.
|
||||
|
||||
%prep
|
||||
%setup -q -n android-studio
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_libexecdir}/%{name}
|
||||
|
||||
cp -a * %{buildroot}%{_libexecdir}/%{name}
|
||||
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
ln -s %{_libexecdir}/%{name}/bin/studio %{buildroot}%{_bindir}/%{name}
|
||||
|
||||
mkdir -p %{buildroot}%{_licensedir}/%{name}
|
||||
install -Dm644 LICENSE.txt %{buildroot}%{_licensedir}/%{name}/LICENSE.txt
|
||||
|
||||
install -Dm644 bin/studio.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/applications
|
||||
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << 'EOF'
|
||||
[Desktop Entry]
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Name=Android Studio
|
||||
Exec=android-studio %f
|
||||
Icon=android-studio
|
||||
Comment=The official Android IDE
|
||||
Categories=Development;IDE;
|
||||
Terminal=false
|
||||
StartupNotify=true
|
||||
StartupWMClass=jetbrains-studio
|
||||
MimeType=application/x-extension-iml;
|
||||
EOF
|
||||
|
||||
%files
|
||||
%license %{_licensedir}/%{name}/LICENSE.txt
|
||||
%{_libexecdir}/%{name}
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/pixmaps/%{name}.png
|
||||
%{_datadir}/applications/%{name}.desktop
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(find(`https://redirector.gvt1.com/edgedl/android/studio/ide-zips/([\d.]+)/android-studio-[\d.]+-linux.tar.gz`, get("https://developer.android.com/studio"), 1));
|
||||
Reference in New Issue
Block a user