summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 22e1a664daa4abcbf53bcd11b88a9c094ab5b333 (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
40
41
42
43
44
45
46
# Maintaoner: Yamada Hayao <development@fascode.net>

android_ver="9.0"
android_codename="pie"
android_revision="r2"
pkgrel=1

pkgname="android-x86-${android_codename}"
pkgver="${android_revision}"
pkgdesc="This is a project to port Android open source project to x86 platform."
arch=('any')
url="https://www.android-x86.org/"
license=('Apache')
depends=()
makedepends=()

install="${pkgname}.install"

backup=(
    "android-${android_ver}-${android_revision}/initrd.img"
    "android-${android_ver}-${android_revision}/kernel"
    "android-${android_ver}-${android_revision}/ramdisk.img"
    "android-${android_ver}-${android_revision}/system.sfs"
)

# i686
source_i686=(
    "android-x86-9.0-r2.i686.rpm::https://osdn.net/projects/android-x86/downloads/71931/android-x86-9.0-r2.i686.rpm/"
)
md5sums_i686=('SKIP')

#x86_64
source_x86_64=(
    "android-x86-9.0-r2.x86_64.rpm::https://osdn.net/projects/android-x86/downloads/71931/android-x86-9.0-r2.x86_64.rpm/"
)
md5sums_x86_64=('SKIP')


package() {
    install -D -m 755 "${srcdir}/usr/bin/qemu-android" "${pkgdir}/usr/bin/qemu-android-${android_codename}"

    local file
    for file in "${srcdir}/android-${android_ver}-${android_revision}/"*; do
        install -D -m 755 "${file}" "${pkgdir}/android-${android_ver}-${android_revision}/$(basename "${file}")"
    done
}