blob: 3d3749fc1d264d5ba1450a5a6929900a1e1cbf6c (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=v4l-utils
pkgver=1.12.3
pkgrel=1
pkgdesc="Userspace tools and conversion library for Video 4 Linux"
url="http://freshmeat.net/projects/libv4l"
arch="all"
license="LGPL2+"
makedepends="qt-dev libjpeg-turbo-dev argp-standalone linux-headers eudev-dev"
subpackages="$pkgname-dev $pkgname-doc qv4l2 $pkgname-dvbv5 $pkgname-libs ir_keytable"
source="http://linuxtv.org/downloads/v4l-utils/$pkgname-$pkgver.tar.bz2
qv4l2.svg
qv4l2.desktop
0001-ir-ctl-fixes-for-musl-compile.patch"
builddir="$srcdir"/$pkgname-$pkgver
check() {
cd "$builddir"
make check
}
build() {
cd "$builddir"
[ "$CLIBC" = "musl" ] && export CFLAGS="$CFLAGS -D__off_t=off_t"
export LIBS="-largp -lintl"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--enable-libdvbv5 \
--disable-static
make
}
package() {
cd "$builddir"
make -j1 DESTDIR="$pkgdir" install
install -Dm644 "$srcdir"/qv4l2.desktop \
"$pkgdir"/usr/share/applications/qv4l2.desktop
install -Dm644 "$srcdir"/qv4l2.svg \
"$pkgdir"/usr/share/icons/hicolor/scalable/apps/qv4l2.svg
}
qv4l2() {
pkgdesc="QT v4l2 test control and streaming test application"
mkdir -p "$subpkgdir"/usr/bin
mv "$pkgdir"/usr/bin/qv4l2 "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share "$subpkgdir"/usr/
}
dvbv5() {
pkgdesc="Backwards compatible DVBv5 command line utilities"
mkdir -p "$subpkgdir"/usr/bin \
"$subpkgdir"/usr/lib
mv "$pkgdir"/usr/bin/dvb* \
"$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/lib/libdvbv5.* \
"$subpkgdir"/usr/lib/
}
libs() {
pkgdesc="Collection of video4linux support libraries"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/* \
"$subpkgdir"/usr/lib
}
ir_keytable() {
pkgdesc="Alter keymaps of Remote Controller devices"
mkdir -p "$subpkgdir"/lib/udev/rc_keymaps \
"$subpkgdir"/lib/udev/rules.d \
"$subpkgdir"/usr/bin \
"$subpkgdir"/etc
mv "$pkgdir"/lib/udev/rc_keymaps/* \
"$subpkgdir"/lib/udev/rc_keymaps
mv "$pkgdir"/lib/udev/rules.d/* \
"$subpkgdir"/lib/udev/rules.d
mv "$pkgdir"/usr/bin/ir-keytable \
"$subpkgdir"/usr/bin
mv "$pkgdir"/etc/rc_maps.cfg \
"$subpkgdir"/etc
}
sha512sums="6d0269d900c5dad08499ee551ce1507b8b750895f48423ccd534db51cf68794b59a279743fd22dc6da0c092ca31ef744aa564f26b6d6252cbbc7a62e2e1c714a v4l-utils-1.12.3.tar.bz2
bc18280046c15b19984103f7c2bb44a0aea79715803c64f0c64bc932499c09022c956914c3b15ae59499adc09f6fbff5378be45707fe851250f495a26b63d682 qv4l2.svg
6f74aa524b3de420eeb8de788ff3f717020732a3f1f6530caee50e63aae7eddbe5f551ffc50065c9f5d6078c13bace089948ecdcacf01f8b82c1a44960e06315 qv4l2.desktop
f93d18b282d52c6cccbedc489e201a19b59f44b5e0aeb74b96537c3f5797c0b3c3f1499cd6ae822715c712e92b5ec5749749394f004ae1887a8bae3bac117c5b 0001-ir-ctl-fixes-for-musl-compile.patch"
|