diff --git a/srcpkgs/v4l2loopback/template b/srcpkgs/v4l2loopback/template new file mode 100644 index 0000000000..a9d20c878e --- /dev/null +++ b/srcpkgs/v4l2loopback/template @@ -0,0 +1,22 @@ +# Template file for 'v4l2loopback' +pkgname=v4l2loopback +version=0.12.0 +revision=1 +hostmakedepends="help2man" +depends="dkms" +dkms_modules="v4l2loopback ${version}" +short_desc="Kernel module to create V4L2 loopback devices" +maintainer="John " +license="GPL-2.0-or-later" +homepage="https://github.com/umlaeute/v4l2loopback" +distfiles="https://github.com/umlaeute/v4l2loopback/archive/v${version}.tar.gz" +checksum=419354f1de98b4f25be75decde942026c7e9e2d2c2def283c2988875e4a16aa6 + +do_install() { + make DESTDIR=${DESTDIR} PREFIX=/usr install-utils install-man + vmkdir usr/src/v4l2loopback-${version} + vcopy Makefile usr/src/v4l2loopback-${version} + vcopy dkms.conf usr/src/v4l2loopback-${version} + vcopy "*.c" usr/src/v4l2loopback-${version} + vcopy "*.h" usr/src/v4l2loopback-${version} +}