summaryrefslogtreecommitdiff
path: root/community/v4l2ucp/PKGBUILD
blob: 1cf3293bb11bc6fef740334a94aa262eb064898c (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
# $Id: PKGBUILD 95917 2013-08-18 17:31:41Z speps $
# Maintainer : speps <speps at aur dot archlinux dot org>
# Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
# Contributor: Giovanni Scafora <linuxmania@gmail.com>

pkgname=v4l2ucp
pkgver=2.0.2
pkgrel=1
pkgdesc="A universal control panel for Video for Linux Two (V4L2) devices"
arch=('i686' 'x86_64')
url="http://v4l2ucp.sourceforge.net/"
license=('GPL')
depends=('qt4' 'v4l-utils')
optdepends=('mplayer: video preview')
makedepends=('cmake')
install=$pkgname.install
source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2")
md5sums=('e5bc6e71e2cd3ab123c277b2f7154b4f')

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  # use videodev2.h header
  sed -i 's/videodev/&2/' src/v4l2ctrl.c
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cmake . -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
}