1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2024-11-12 03:55:00 -05:00
arch-ppa/src/android-emulator/PKGBUILD

36 lines
1.2 KiB
Bash
Raw Normal View History

2018-06-18 22:31:46 -04:00
# Maintainer: Zhang Hai <dreaming.in.code.zh@gmail.com>
pkgname=android-emulator
2019-03-03 20:21:14 -05:00
pkgver=28.0.23
2018-06-18 22:31:46 -04:00
pkgrel=1
pkgdesc='Google Android Emulator'
2019-03-03 20:21:14 -05:00
arch=('x86_64')
2018-06-18 22:31:46 -04:00
url='https://developer.android.com/studio/releases/emulator.html'
license=('custom')
2019-03-03 20:21:14 -05:00
depends=('libpulse' 'libx11' 'libxcb' 'libxdamage' 'libxext'
'libxfixes' 'ncurses5-compat-libs' 'zlib')
2018-06-18 22:31:46 -04:00
install="${pkgname}.install"
2019-03-03 20:21:14 -05:00
source=('https://dl.google.com/android/repository/emulator-linux-5264690.zip'
2018-06-18 22:31:46 -04:00
"${pkgname}.sh"
"${pkgname}.csh")
2019-03-03 20:21:14 -05:00
sha1sums=('48c1cda2bdf3095d9d9d5c010fbfb3d6d673e3ea'
2018-06-18 22:31:46 -04:00
'4537a7ce30bedf87cedafc2020822219ad58310d'
'2fb371b5774b67143f0610dfbec4963a4e2f11cc')
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/"
# 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: