34 lines
942 B
Plaintext

# Contributor: Marian Buschsieweke <marian.buschsieweke@posteo.net>
# Maintainer: Krystian Chachuła <krystian@krystianch.com>
pkgname=v4l2loopback-src
_modname=v4l2loopback
pkgver=0.13.2
pkgrel=0
pkgdesc="Kernel module to create V4L2 loopback devices"
url="https://github.com/umlaeute/v4l2loopback"
arch="noarch"
license="GPL-2.0-only"
depends="akms"
source="$pkgname-$pkgver.tar.gz::https://github.com/umlaeute/v4l2loopback/archive/v$pkgver.tar.gz"
builddir="$srcdir/v4l2loopback-$pkgver"
options="!check" # sources only
prepare() {
default_prepare
cat >AKMBUILD <<-EOF
modname=$_modname
modver=$pkgver-r$pkgrel
built_modules='v4l2loopback.ko'
EOF
}
package() {
install -D -m644 -t "$pkgdir"/usr/src/$_modname-$pkgver \
./*.c ./*.h Kbuild AKMBUILD
}
sha512sums="
2ed73deb95eab4320d5dd45248f8f61aa1e9b8a07ab4fe53ec38ba1e1129f1ceb8753de4bef5128bac3ed3c8841ea0bb82ffbe90e2b9ccc422ff9c58940db524 v4l2loopback-src-0.13.2.tar.gz
"