File PKGBUILD of Package binder-dkms

# Maintainer: James Ed Randson <jimedrand@disroot.org>
# Contributor: Sick Codes <info at sick dot codes>
# Contributor: Christian Hoff <https://github.com/choff>
# Contributor: Tobias Martin <tm-x at gmx dot net>

_commit=18f37babc3ab27abbe2f8383c6c850a3e81c03d7

pkgname=binder-dkms
pkgver=master
pkgrel=1
arch=("x86_64")
url='https://github.com/llyyr/anbox-modules'
pkgdesc='Android kernel driver fork by @llyyr in DKMS format which only contain binder modules.'
license=("GPL3")
conflicts=("binder_linux-dkms" "anbox-modules-dkms")
depends=("dkms")
source=(
    "anbox-modules-${_commit}.tar.gz::https://github.com/llyyr/anbox-modules/archive/${_commit}.tar.gz"
)
sha256sums=('SKIP')

package(){
    install -dm755 "${pkgdir}/usr/src/binder-1"
    cp -r "${srcdir}/anbox-modules-${_commit}/binder/"* "${pkgdir}/usr/src/binder-1/"
}
openSUSE Build Service is sponsored by