blob: f0113d3802062ee56e76f9811cdef661e75b1029 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Hai Zhang <dreaming.in.code.zh@gmail.com>
pkgname=android-emulator
pkgver=35.2.10
pkgrel=1
pkgdesc='Google Android Emulator'
arch=('x86_64')
url='https://developer.android.com/studio/releases/emulator.html'
license=('custom')
depends=('alsa-lib' 'dbus' 'expat' 'gcc-libs' 'glibc' 'libpulse'
'libutil-linux' 'libx11' 'libxcb' 'libxcomposite' 'libxcursor'
'libxdamage' 'libxext' 'libxfixes' 'libxi' 'libxrender' 'libxtst'
'nspr' 'nss' 'zlib')
install="${pkgname}.install"
source=('https://dl.google.com/android/repository/emulator-linux_x64-12414864.zip'
"${pkgname}.sh"
"${pkgname}.csh"
'package.xml')
sha1sums=('41dd213d120f727d8c3840347d234b135793ba10'
'80c9b3ffc8865b5f8e55b1ffed36c08ee7a9d8ad'
'e1485ef14463f275005cae43a0a1e43ce52354ca'
'38ccf71b058bcbe1d13120ab0392ad1895d7e63a')
package() {
install -Dm755 "${pkgname}.sh" "${pkgdir}/etc/profile.d/${pkgname}.sh"
install -Dm755 "${pkgname}.csh" "${pkgdir}/etc/profile.d/${pkgname}.csh"
install -d "${pkgdir}/opt/android-sdk/"
cp -a emulator "${pkgdir}/opt/android-sdk/"
install -Dm755 'package.xml' "${pkgdir}/opt/android-sdk/emulator/package.xml"
# 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:
|