This repository has been archived by the owner on Sep 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.yml
54 lines (53 loc) · 1.73 KB
/
package.yml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name : v4l2loopback
version : 0.12.7
release : 264
source :
- https://github.com/umlaeute/v4l2loopback/archive/v0.12.7.tar.gz : e0782b8abe8f2235e2734f725dc1533a0729e674c4b7834921ade43b9f04939b
license : GPL-2.0-or-later
component :
- kernel.drivers
- current : kernel.drivers
- common : system.utils
summary :
- A kernel module to create V4L2 loopback devices
- current : v4l2loopback package for linux-current
- common : Common components for v4l2loopback packages
description: |
A kernel module to create V4L2 loopback devices
builddeps :
- pkgconfig(libelf)
- help2man
- linux-lts
- linux-lts-headers
- linux-current
- linux-current-headers
rundeps :
- v4l2loopback-common
- current :
- v4l2loopback-common
permanent :
- /lib/modules
patterns :
- common :
- /usr/bin
- /usr/share/man
- current : /lib/modules/*.current
setup : |
pushd ..
cp -aR v4l2loopback-$version lts-build
cp -aR v4l2loopback-$version current-build
build : |
pushd lts-build
%make KERNELRELEASE=%kernel_version_lts%
pushd ../current-build
%make KERNELRELEASE=%kernel_version_current%
install : |
pushd lts-build
export KERN=%kernel_version_lts%
%make KERNELRELEASE=$KERN install-utils install-man DESTDIR=$installdir PREFIX=/usr
install -D -m 00755 v4l2loopback.ko $installdir/lib/modules/$KERN/extra/v4l2loopback.ko
pushd ../current-build
export KERN=%kernel_version_current%
install -D -m 00755 v4l2loopback.ko $installdir/lib/modules/$KERN/extra/v4l2loopback.ko
# Compress modules with zstd
find "$installdir" -name '*.ko' -exec strip --strip-debug {} \; -exec zstd {} \; -exec rm -v {} \;