v4l2loopback add

This commit is contained in:
Alex D. 2021-07-08 19:30:34 +00:00
parent 0155831cd2
commit 53ac9dc338
Signed by: caskd
GPG Key ID: F92BA85F61F4C173

View File

@ -0,0 +1,49 @@
# Contributor: Meeper <meeper@redxen.eu>
# Contributor: caskd <caskd@redxen.eu>
# Maintainer: Meeper <meeper@redxen.eu>
pkgname=v4l2loopback
pkgver=0.12.5_git20210706
pkgrel=0
_gitrev=52a0de0d640124c7704dd86e096b5bef4d8771d2
_flavor=edge
_kver=5.13.0
_krel=0
_kpkg=linux-$_flavor
_kpkgver="$_kver-r$_krel"
_kabi="$_kver-$_krel-$_flavor"
pkgdesc="A kernel module to create V4L2 loopback devices"
url="https://github.com/umlaeute/v4l2loopback"
arch="x86_64" # need to confirm other archs should work though
license="GPL-2.0"
makedepends="
${_kpkg}-dev=$_kpkgver
linux-headers
v4l-utils-dev
help2man
"
options="!check" # No tests provided
subpackages="$pkgname-doc $pkgname-utils"
source="
$pkgname-$pkgver.tar.gz::https://github.com/umlaeute/v4l2loopback/archive/$_gitrev.tar.gz
"
builddir="$srcdir/$pkgname-$_gitrev"
build() {
make KERNELRELEASE="$_kabi"
}
package() {
make PREFIX=/usr DESTDIR="$pkgdir" INSTALL_MOD_PATH="$pkgdir" install install-utils install-man
}
utils() {
amove usr/bin
}
sha512sums="
bf424605bd51c0956978338f92f514db709e1a056c334f7e051a9eb1fd2800351096e4eb5f075eca2fecc22c28d52417e8e29b722d2504e6d930ffa63f65e3b3 v4l2loopback-0.12.5_git20210706.tar.gz
"