summaryrefslogblamecommitdiff
path: root/user/v4l-utils/APKBUILD
blob: 53a153fbc2863deea7c3e4e07b70f7ca0c1c4775 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                      
             




                                                                  
          
                                                                           
                                     
                                                                       
                                                                            

         

                                                           


         
                           


           
                                                



                                                                     
                                             

                                                        
                                                          











                                                             
                                        

                                      



                                          





                                          
                                                                                                                                                                      
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: 
pkgname=v4l-utils
pkgver=1.26.1
pkgrel=0
pkgdesc="Userspace tools and conversion library for Video 4 Linux"
url="https://www.linuxtv.org/wiki/index.php/V4l-utils"
arch="all"
license="LGPL-2.0+"
depends=""
makedepends="qt5-qtbase-dev libjpeg-turbo-dev argp-standalone linux-headers
	eudev-dev alsa-lib-dev meson"
subpackages="$pkgname-dev $pkgname-doc qv4l2 $pkgname-libs ir_keytable"
source="https://www.linuxtv.org/downloads/v4l-utils/$pkgname-$pkgver.tar.xz"

build() {
	meson setup -Dlibdvbv5=disabled -Dprefix=/usr build
	meson compile -C build
}

check() {
	meson test -C build
}

package() {
	DESTDIR="$pkgdir" meson install -C build
}

qv4l2() {
	pkgdesc="Qt V4L2 test control and streaming test application"
	install_if="qt5-qtbase-x11 v4l-utils"
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/qv4l2 "$subpkgdir"/usr/bin/
	mv "$pkgdir"/usr/bin/qvidcap "$subpkgdir"/usr/bin/
	mv "$pkgdir"/usr/share "$subpkgdir"/usr/
}

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 \
		"$subpkgdir"/usr/bin \
		"$subpkgdir"/etc
	mv "$pkgdir"/lib/udev/rc_keymaps \
                "$subpkgdir"/lib/udev/
	mv "$pkgdir"/lib/udev/rules.d \
		"$subpkgdir"/lib/udev/
	mv "$pkgdir"/usr/bin/ir-keytable \
		"$subpkgdir"/usr/bin
	mv "$pkgdir"/etc/rc_maps.cfg \
		"$subpkgdir"/etc
}

sha512sums="a3b12b311977afec410db8b430696e923a24e04f003a5891cc77ddeb667d0b98666a06d31a439c95ce57d9e9c9c2593c5e9dd9e7cf2be002adb95db5b8f00ac8  v4l-utils-1.26.1.tar.xz"