blob: 7f1ae5aed2f603c7c06723743e2a473be106d9c4 (
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
|
# Contributor: Pedro H Lara Campos <root@pedrohlc.com>
pkgname=haxm-git
pkgver=v7.5.4.r17.gadf4b6a
pkgrel=1
pkgdesc="IntelĀ® Hardware Accelerated Execution Manager - a hardware-assisted virtualization engine (git version)"
arch=('x86_64' 'i686')
url="https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager"
license=('BSD')
depends=('linux>4' 'nasm>=2.11')
makedepends=(linux-headers)
provides=(haxm)
conflicts=(haxm)
source=("$pkgname::git+https://github.com/intel/haxm.git")
md5sums=('SKIP')
install='haxm-git.install'
pkgver() {
cd "$srcdir/$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/loader\.v//g'
}
build() {
cd "$srcdir/$pkgname/platforms/linux"
_kernver="$(</usr/src/linux/version)"
_kdir="/usr/lib/modules/${_kernver}/build"
make KVER="${_kernver}" KDIR="${_kdir}" modules
}
package() {
cd "$srcdir/$pkgname/platforms/linux"
_ldir="$pkgdir/usr/lib/haxm"
install -dm 644 "${_ldir}"
install -Dm 755 'haxm-install.sh' "${_ldir}/install.sh"
install -Dm 755 'haxm-uninstall.sh' "${_ldir}/uninstall.sh"
install -Dt "$pkgdir/usr/lib/modules/${_extramodules}" -m644 haxm.ko
# TODO: Add license
}
|