50 lines
2.1 KiB
Bash
50 lines
2.1 KiB
Bash
# Template file for 'android-studio'
|
|
pkgname=android-studio
|
|
version=3.3.1
|
|
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=182.5264788
|
|
_studio_rev=0
|
|
create_wrksrc=yes
|
|
only_for_archs="x86_64 i686"
|
|
build_style=fetch
|
|
hostmakedepends="unzip"
|
|
depends="gtk+ libGL"
|
|
short_desc="Official Android IDE"
|
|
maintainer="Jordyn Carattini <onlinecloud1@gmail.com>"
|
|
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.zip"
|
|
checksum=82603100f772baf5b6b54532375ada756b4b2dc11854cabae267cd8bd8c4f039
|
|
repository=nonfree
|
|
nopie=yes
|
|
nostrip=yes
|
|
|
|
# These files are not run or loaded on the host thus skip scanning their runtime deps
|
|
skiprdeps="/opt/android-studio/plugins/android/resources/installer/arm64-v8a/installer
|
|
/opt/android-studio/plugins/android/resources/installer/armeabi-v7a/installer
|
|
/opt/android-studio/plugins/android/resources/installer/x86/installer
|
|
/opt/android-studio/plugins/android/resources/perfa/arm64-v8a/libperfa.so
|
|
/opt/android-studio/plugins/android/resources/perfa/armeabi-v7a/libperfa.so
|
|
/opt/android-studio/plugins/android/resources/perfa/x86/libperfa.so
|
|
/opt/android-studio/plugins/android/resources/perfa/x86_64/libperfa.so
|
|
/opt/android-studio/plugins/android/resources/perfd/arm64-v8a/perfd
|
|
/opt/android-studio/plugins/android/resources/perfd/armeabi-v7a/perfd
|
|
/opt/android-studio/plugins/android/resources/perfd/x86/perfd"
|
|
|
|
do_install() {
|
|
unzip android-studio-ide-${_studio_build}-linux.zip
|
|
vmkdir opt/${pkgname}
|
|
vcopy android-studio/bin opt/${pkgname}/
|
|
vcopy android-studio/gradle opt/${pkgname}/
|
|
vcopy android-studio/lib opt/${pkgname}/
|
|
vcopy android-studio/jre opt/${pkgname}/
|
|
vcopy android-studio/plugins opt/${pkgname}/
|
|
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/
|
|
chmod -R ugo+rX ${DESTDIR}/opt
|
|
}
|