summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ab956a56c3d113039be54e19619ee3d2f56c2fb (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
# Maintainer: Sick Codes <info at sick dot codes>
# Maintainer: Christian Hoff <https://github.com/choff>
# Contributor: Tobias Martin <tm-x at gmx dot net>

_commit=ee4c25f064d89f08136d5814bf2368512973017f

pkgname=binder_linux-dkms
pkgver=6.14
pkgrel=1
arch=("x86_64")
url='https://github.com/choff/anbox-modules'
pkgdesc='Android kernel driver fork by @choff in DKMS format, binder only.'
license=("GPL3")
conflicts=("anbox-modules-dkms")
depends=("dkms")
source=(
    "anbox-modules-${_commit}.tar.gz::https://github.com/choff/anbox-modules/archive/${_commit}.tar.gz"
    "pr-22.diff::https://github.com/choff/anbox-modules/pull/22.diff"
)
sha256sums=('8c095231f854a4c7ebe45a92386b6d69a2e4de851806a53e1bf314a4f397d1a0'
            'fd53db18744233fdf80c116d21330a4e0acdeff246c02929068ffedd8c3d8ab1')
prepare(){
     cd "${srcdir}/anbox-modules-${_commit}"
     for diff_file in "${srcdir}/"*.diff
     do
         patch -Np1 -i "$diff_file"
     done
}
package(){
    install -dm755 "${pkgdir}/usr/src/binder-1"
    cp -r "${srcdir}/anbox-modules-${_commit}/binder/"* "${pkgdir}/usr/src/binder-1/"
}