updated on Mon Jan 23 04:00:55 UTC 2012
[aur-mirror.git] / v4l2ucp / PKGBUILD
blobe221cdb304abd70d0daf44d899d18e39ef69f979
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: Xavion <Xavion (dot) 0 (at) Gmail (dot) com>
3 # Contributor: Giovanni Scafora <linuxmania@gmail.com>
5 pkgname=v4l2ucp
6 pkgver=2.0.2
7 pkgrel=3
8 pkgdesc="A universal control panel for Video for Linux Two (V4L2) devices"
9 arch=("i686" "x86_64")
10 url="http://${pkgname}.sourceforge.net"
11 license=('GPL2')
12 depends=('qt' 'v4l-utils')
13 optdepends=('mplayer: Video Preview')
14 makedepends=('cmake')
15 install="$pkgname.install"
16 source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2"
17         "$pkgname.desktop")
18 md5sums=('e5bc6e71e2cd3ab123c277b2f7154b4f'
19          'db20c209857533aeeb00e30c4872efd3')
21 build() {
22   cd "$srcdir/$pkgname-$pkgver"
24   # remove old v4l header
25   sed -i 's|\(videodev\)\.|\12\.|' src/v4l2ctrl.c
27   cmake . -DCMAKE_INSTALL_PREFIX=/usr
28   make
31 package() {
32   cd "$srcdir/$pkgname-$pkgver"
34   make DESTDIR="$pkgdir/" install
36   # Install Desktop file
37   install -Dm644 ../$pkgname.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"