blob: 2003349ce2d6d282ea3921c29e9c0f20c36a9805 (
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
|
# Maintainer: Muflone http://www.muflone.com/contacts/english/
# Contributor: lestb <tkhdlstfl dot l plus aur at gmail dot com>
pkgname=android-x86-64-system-image
pkgver=31_r05
pkgrel=1
pkgdesc='Android x86_64 Atom System Image, latest API'
arch=('any')
url='https://software.intel.com/en-us/android/tools'
license=('custom')
depends=('android-platform')
optdepends=('qemu' 'libvirt')
provides=("${pkgname}-${pkgver/_*/}")
conflicts=("${pkgname}-${pkgver/_*/}")
options=('!strip')
source=("${pkgname}-${pkgver}.zip"::"https://dl-ssl.google.com/android/repository/sys-img/android/x86_64-${pkgver}.zip"
"package.xml")
sha256sums=('f77492768c6449a20d101a2fc0f32865a0aca6067dae6de4e94073fbceda9bca'
'c98412b97f65e2e4c564d5bb2639196756faae90b610fcbfb6d983e89462c1a8')
prepare() {
# Fix permissions
cd 'x86_64'
find . -type f -print0 | xargs --null chmod -R u=rw,go=r
find . -type d -print0 | xargs --null chmod -R u=rwx,go=rx
}
package() {
# Install files
install -d -m 755 "${pkgdir}/opt/android-sdk/system-images/android-${pkgver/_*/}/default"
cp -r 'x86_64' "${pkgdir}/opt/android-sdk/system-images/android-${pkgver/_*/}/default/"
# Install license
install -D -m 644 "package.xml" "${pkgdir}/usr/share/licenses/${pkgname}/package.xml"
ln -s "/usr/share/licenses/${pkgname}/package.xml" \
"${pkgdir}/opt/android-sdk/system-images/android-${pkgver/_*/}/default/x86_64/"
}
|