diff --git a/v4l2loopback-dkms-git/.SRCINFO b/v4l2loopback-dkms-git/.SRCINFO new file mode 100644 index 0000000..ff4b646 --- /dev/null +++ b/v4l2loopback-dkms-git/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = v4l2loopback-dkms-git + pkgdesc = v4l2-loopback device + pkgver = 0.12.5.r232.g2fa9d6d + pkgrel = 1 + url = https://github.com/umlaeute/v4l2loopback + arch = any + license = GPL2 + makedepends = git + makedepends = help2man + depends = dkms + provides = v4l2loopback-dkms + conflicts = v4l2loopback-dkms + source = git+https://github.com/umlaeute/v4l2loopback.git#branch=main + md5sums = SKIP + +pkgname = v4l2loopback-dkms-git diff --git a/v4l2loopback-dkms-git/.gitignore b/v4l2loopback-dkms-git/.gitignore new file mode 100644 index 0000000..b6f4c70 --- /dev/null +++ b/v4l2loopback-dkms-git/.gitignore @@ -0,0 +1,4 @@ +pkg +src +v4l2loopback-*.tar.xz +v4l2loopback diff --git a/v4l2loopback-dkms-git/.gitrepo b/v4l2loopback-dkms-git/.gitrepo new file mode 100644 index 0000000..af73aa5 --- /dev/null +++ b/v4l2loopback-dkms-git/.gitrepo @@ -0,0 +1,12 @@ +; DO NOT EDIT (unless you know what you are doing) +; +; This subdirectory is a git "subrepo", and this file is maintained by the +; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme +; +[subrepo] + remote = https://aur.archlinux.org/v4l2loopback-dkms-git.git + branch = master + commit = 394829cae12200c90cbbdc3a279de9415fb98b42 + parent = d740276e7bfd8f1a82b9725848957afc06d457c7 + method = merge + cmdver = 0.4.3 diff --git a/v4l2loopback-dkms-git/PKGBUILD b/v4l2loopback-dkms-git/PKGBUILD new file mode 100644 index 0000000..7d29a4a --- /dev/null +++ b/v4l2loopback-dkms-git/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Gonzalo Exequiel Pedone +# Contributor: Romain "Artefact2" Dal Maso + +_pkgbase=v4l2loopback +pkgname=${_pkgbase}-dkms-git +pkgver=0.12.5.r232.g2fa9d6d +pkgrel=1 +pkgdesc="v4l2-loopback device" +url="https://github.com/umlaeute/v4l2loopback" +arch=('any') +license=('GPL2') +depends=('dkms') +makedepends=('git' 'help2man') +conflicts=("${_pkgbase}-dkms") +provides=("${_pkgbase}-dkms") +source=("git+https://github.com/umlaeute/v4l2loopback.git#branch=main") +md5sums=('SKIP') + +pkgver() { + cd "$srcdir/${_pkgbase}" + ( + set -o pipefail + git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' || + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + ) +} + +package() { + cd "${srcdir}/${_pkgbase}" + mkdir -p "${pkgdir}/usr/share/licenses/${_pkgbase}" + cp -vf COPYING "${pkgdir}/usr/share/licenses/${_pkgbase}" + make DESTDIR="${pkgdir}" PREFIX="/usr" install-utils install-man + mkdir -p "${pkgdir}/usr/src/${_pkgbase}-${pkgver}" + cp -ar * "${pkgdir}/usr/src/${_pkgbase}-${pkgver}" +}