mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-11-21 16:25:00 -05:00
Add android-emulator
This commit is contained in:
parent
d3102844ac
commit
8213027401
44
src/android-emulator/PKGBUILD
Normal file
44
src/android-emulator/PKGBUILD
Normal 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:
|
2
src/android-emulator/android-emulator.csh
Normal file
2
src/android-emulator/android-emulator.csh
Normal file
@ -0,0 +1,2 @@
|
||||
setenv ANDROID_HOME /opt/android-sdk
|
||||
setenv PATH "${PATH}:${ANDROID_HOME}/emulator"
|
3
src/android-emulator/android-emulator.install
Normal file
3
src/android-emulator/android-emulator.install
Normal file
@ -0,0 +1,3 @@
|
||||
post_install() {
|
||||
echo You need to source /etc/profile or relogin to add the Android Emulator to your path.
|
||||
}
|
2
src/android-emulator/android-emulator.sh
Normal file
2
src/android-emulator/android-emulator.sh
Normal file
@ -0,0 +1,2 @@
|
||||
export ANDROID_HOME=/opt/android-sdk
|
||||
export PATH="${PATH}:${ANDROID_HOME}/emulator"
|
Loading…
Reference in New Issue
Block a user