blob: ff0818f3fd1f1fa0fd57f0b27200c83728bbeaaf (
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
|
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=v4l-utils
pkgver=1.6.3
pkgrel=1
pkgdesc="Userspace tools and conversion library for Video 4 Linux"
url="http://freshmeat.net/projects/libv4l"
arch="all"
license="LGPL2+"
depends=""
makedepends="qt-dev libjpeg-turbo-dev argp-standalone linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc qv4l2 $pkgname-dvbv5"
source="http://linuxtv.org/downloads/v4l-utils/$pkgname-$pkgver.tar.bz2
fix-compliance.patch
qv4l2.svg
qv4l2.desktop
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
[ "$CLIBC" = "musl" ] && export CFLAGS="$CFLAGS -D__off_t=off_t"
export LDFLAGS="$LDFLAGS -largp"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--disable-static \
--enable-libdvbv5 \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
install -Dm644 "$srcdir"/qv4l2.desktop \
"$pkgdir"/usr/share/applications/qv4l2.desktop || return 1
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/ || return 1
mv "$pkgdir"/usr/share "$subpkgdir"/usr/ || return 1
rm "$pkgdir"/usr/lib/*.la || return 1
rm "$pkgdir"/usr/lib/libv4l/*.la || return 1
rm "$pkgdir"/usr/lib/libv4l/plugins/*.la || return 1
}
dvbv5() {
pkgdesc="Backwards compatible DVBv5 command line utilities"
mkdir -p "$subpkgdir"/usr/bin \
"$subpkgdir"/usr/lib
mv "$pkgdir"/usr/bin/dvb* \
"$subpkgdir"/usr/bin/ || return 1
mv "$pkgdir"/usr/lib/libdvbv5.* \
"$subpkgdir"/usr/lib/ || return 1
}
md5sums="307858616be6374f63bf946307f15a7f v4l-utils-1.6.3.tar.bz2
53cebe0358ebef84eecea1c97a57bacf fix-compliance.patch
75ef594ddfe48e48df99c96c2af6b51e qv4l2.svg
b2e51f9663cee1c38a1d99d76a6b529f qv4l2.desktop"
sha256sums="164abf5c1befcd27e8e6ef824a82d4015bdfb5d99ae82daa00e77d895ff9864c v4l-utils-1.6.3.tar.bz2
8a9ad49b5ea0580aad949fe60dd3e616914d682988b07f0b51499957ef464611 fix-compliance.patch
b1dad7c1649881be8e66f4d9d0f32206796dd0a10dd936c342426ec64cf9c77c qv4l2.svg
1c5739631e37a7338409ea8b5c797a6888fd9a595e72d9dc96dd634df26373f3 qv4l2.desktop"
sha512sums="8fa9f5e0af9c9f111ffbf4d2d599112e98017447623a83c484963ef32c495de195cbd53b4b9e1b2130e9c7ac0b5ab7a35e72e04ea4089db771028485e3c4df69 v4l-utils-1.6.3.tar.bz2
5f8d656c9614b23a61bb303214a90b24021495716e8101dc7f691b6d8d9c307d85861fbcc9ef732d01c98491eebae70047a340bc518271f29c830fced0201f21 fix-compliance.patch
bc18280046c15b19984103f7c2bb44a0aea79715803c64f0c64bc932499c09022c956914c3b15ae59499adc09f6fbff5378be45707fe851250f495a26b63d682 qv4l2.svg
6f74aa524b3de420eeb8de788ff3f717020732a3f1f6530caee50e63aae7eddbe5f551ffc50065c9f5d6078c13bace089948ecdcacf01f8b82c1a44960e06315 qv4l2.desktop"
|