#Packager: George Vlahavas # # Make sure you don't have qt installed, if you don't want the qt # test app to be built. pkgname=v4l-utils pkgver=0.8.8 pkgrel=1gv source=("$pkgname-$pkgver.tar.xz") docs=("readme*" "install" "copying*" "changelog" "authors" "news" "todo") url=http://linuxtv.org options=('nosrcpack' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "v4l-utils (libraries and utilities for video4linux)" "libv4l is a collection of libraries which adds a thin abstraction" "layer on top of video4linux2 devices. The purpose of this (thin)" "layer is to make it easy for application writers to support a wide" "variety of devices without having to write separate code for" "different devices in the same class. Linux V4L2 and DVB API" "utilities are also included." ) build() { cd $startdir/src/$pkgname-$pkgver # Fix manpage path: sed -i "s,share/man/,man/,g" utils/keytable/Makefile # Build and install: export CFLAGS="$CFLAGS" export CPPFLAGS="$CFLAGS" make -j ${numjobs} PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} || \ make PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} MANDIR=/usr/man || \ exit 1 make install PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} MANDIR=/usr/man DESTDIR=$PKG || exit 1 # System udev files should go under /lib: if [ -r $PKG/etc/udev/rules.d/70-infrared.rules ]; then mkdir -p $PKG/lib/udev/rules.d mv $PKG/etc/udev/rules.d/70-infrared.rules $PKG/lib/udev/rules.d rmdir $PKG/etc/udev/rules.d 2> /dev/null rmdir $PKG/etc/udev 2> /dev/null rmdir $PKG/etc 2> /dev/null sed -i "s,/etc/udev/rules.d,/lib/udev/rules.d,g" $PKG/lib/udev/rules.d/70-infrared.rules fi }