blob: 02f15532bf80c7ba80f835fc70b3cd783b00812d (
plain)
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
|
# Maintainer: Nathan Wong, NorthWestWind <wsyn148@gmail.com>
_pkgname=lgx2userspace
pkgname=$_pkgname-git
pkgver=0.3.0.r22.g0547560
pkgrel=1
pkgdesc="This is a Linux userspace driver for the AverMedia LGX2 (GC551) and AverMedia LGX (GC550). Using the noconan branch."
arch=('any')
url="https://github.com/ChrisAJS/lgx2userspace"
license=('custom:MIT')
groups=()
depends=('libao' 'libusb' 'libusb-compat' 'sdl2' 'sdl2_gfx' 'v4l2loopback-dkms' 'v4l2loopback-utils')
makedepends=('cmake')
install=lgx2userspace.install
source=("${_pkgname}::git+https://github.com/ChrisAJS/lgx2userspace.git#branch=noconan")
md5sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long --tags --abbrev=7 | sed 's/^release\///;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
mkdir -p "${_pkgname}/build"
cd $_pkgname
}
build() {
cd "${_pkgname}/build"
cmake .. -DENABLE_LGX_GC550_SUPPORT=ON -DCMAKE_BUILD_TYPE=Release
make
}
package() {
cd "${_pkgname}"
install -Dm644 LICENCE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
mkdir -p "$pkgdir/etc/udev/rules.d"
cp 999-avermedia.rules "$pkgdir/etc/udev/rules.d/"
cd "build/src/cli"
mkdir -p "$pkgdir/usr/bin"
cp lgx2userspace "$pkgdir/usr/bin/"
}
|