#Maintainer: Thorsten Muehlfelder pkgname=libv4l pkgver=0.5.99 pkgrel=2tm arch=x86_64 source=("http://people.atrpms.net/~hdegoede/libv4l-$pkgver.tar.gz") url="http://people.atrpms.net/~hdegoede/" docs=('AUTHORS' 'COPYING' 'ChangeLog' 'NEWS' 'README') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - Video 4 Linux userspace interface" "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 seperate code for different devices" "in the same class." ) build() { cd $startdir/src/${pkgname}-${pkgver} # adjust cflags sed -i "s/CFLAGS\ :=\ -g\ -O1/CFLAGS\ :=\ -g\ $CFLAGS/" */Makefile || return 1 make -j3 PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} || return 1 make install PREFIX=/usr LIBDIR=/usr/lib${LIBDIRSUFFIX} DESTDIR=$startdir/pkg }