void-packages/srcpkgs/android-studio/template

36 lines
1.3 KiB
Bash

# Template file for 'android-studio'
pkgname=android-studio
version=2.3.3
revision=1
# _studio_build and _studio_rev are for downloading the zip from dl.google.com
# https://developer.android.com/studio/index.html#resources as of 2017-07-04
_studio_build=162.4069837
_studio_rev=0
# changlelog="https://developer.android.com/studio/releases/index.html"
create_wrksrc=yes
build_style=fetch
hostmakedepends="unzip"
depends="gtk+ libGL"
short_desc="The official Android IDE"
maintainer="Jordyn Carattini <onlinecloud1@gmail.com>"
repository=nonfree
only_for_archs="x86_64 i686"
distfiles="https://dl.google.com/dl/android/studio/ide-zips/${version}.${_studio_rev}/android-studio-ide-${_studio_build}-linux.zip"
checksum=1383cfd47441e5f820b6257a1bdd683e0e980bc76c7f2027ef84dc2e6ad2f17f
license="Apache-2.0"
homepage="http://tools.android.com/"
nopie=yes
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
chmod -R ugo+rX ${DESTDIR}/opt
}