1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-25 01:52:18 -05:00

Add android-emulator

This commit is contained in:
Travis Burtrum 2018-06-18 22:31:46 -04:00
parent d3102844ac
commit 8213027401
4 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,44 @@
# Maintainer: Zhang Hai <dreaming.in.code.zh@gmail.com>
pkgname=android-emulator
pkgver=27.2.9
pkgrel=1
pkgdesc='Google Android Emulator'
arch=('i686' 'x86_64')
url='https://developer.android.com/studio/releases/emulator.html'
license=('custom')
depends_i686=('gcc-libs' 'libpulse' 'libx11' 'libxcb' 'libxdamage'
'libxext' 'libxfixes' 'ncurses5-compat-libs' 'zlib')
depends_x86_64=('lib32-gcc-libs' 'lib32-glibc' 'libpulse' 'libx11'
'libxcb' 'libxdamage' 'libxext' 'libxfixes'
'ncurses5-compat-libs' 'zlib')
install="${pkgname}.install"
source=('https://dl.google.com/android/repository/emulator-linux-4773671.zip'
"${pkgname}.sh"
"${pkgname}.csh")
sha1sums=('2a4d424c0c8a2ac94fea68732f90c7668e5682f6'
'4537a7ce30bedf87cedafc2020822219ad58310d'
'2fb371b5774b67143f0610dfbec4963a4e2f11cc')
package() {
install -Dm755 "${pkgname}.sh" "${pkgdir}/etc/profile.d/${pkgname}.sh"
install -Dm755 "${pkgname}.csh" "${pkgdir}/etc/profile.d/${pkgname}.csh"
rm -rf emulator/lib{,64}/libstdc++
if [[ "${CARCH}" = i686 ]]; then
rm -rf emulator/lib64/
fi
install -d "${pkgdir}/opt/android-sdk/"
cp -a emulator "${pkgdir}/opt/android-sdk/"
# Fix broken permissions
chmod -R o=g "${pkgdir}/opt/android-sdk/emulator"
find "${pkgdir}/opt/android-sdk/emulator" -perm 744 -exec chmod 755 {} +
}
# getver: https://developer.android.com/studio/releases/emulator.html
# see https://dl.google.com/android/repository/repository2-1.xml for new versions
# vim:set ts=2 sw=2 et:

View File

@ -0,0 +1,2 @@
setenv ANDROID_HOME /opt/android-sdk
setenv PATH "${PATH}:${ANDROID_HOME}/emulator"

View File

@ -0,0 +1,3 @@
post_install() {
echo You need to source /etc/profile or relogin to add the Android Emulator to your path.
}

View File

@ -0,0 +1,2 @@
export ANDROID_HOME=/opt/android-sdk
export PATH="${PATH}:${ANDROID_HOME}/emulator"