desktop/v4l2ucp/PKGBUILD

40 lines
1020 B
Bash
Raw Normal View History

2016-01-20 23:06:25 +08:00
# Contributions from Arch: https://projects.archlinux.org/svntogit/community.git/tree/trunk?h=packages/v4l2ucp
2011-08-26 07:22:54 +08:00
pkgname=v4l2ucp
pkgver=2.0.2
2016-01-20 23:06:25 +08:00
pkgrel=3
2011-08-26 07:22:54 +08:00
pkgdesc="A universal control panel for Video for Linux Two (V4L2) devices."
2016-01-20 23:06:25 +08:00
arch=("x86_64")
2011-08-26 07:22:54 +08:00
url="http://$pkgname.sourceforge.net"
license=('GPL2')
depends=('qt' 'v4l-utils')
optdepends=('mplayer: video preview.')
makedepends=('cmake')
categories=('utils')
2011-08-26 07:22:54 +08:00
install=$pkgname.install
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2
$pkgname.desktop)
md5sums=('e5bc6e71e2cd3ab123c277b2f7154b4f'
'db20c209857533aeeb00e30c4872efd3')
build() {
2016-01-20 23:06:25 +08:00
cd $pkgname-$pkgver
2011-08-26 07:22:54 +08:00
# Remove old v4l header.
sed -i 's|\(videodev\)\.|\12\.|' src/v4l2ctrl.c
# Configure and build.
2016-01-20 23:06:25 +08:00
cmake . -DCMAKE_INSTALL_PREFIX=/usr
2011-08-26 07:22:54 +08:00
make
}
package() {
2016-01-20 23:06:25 +08:00
cd $pkgname-$pkgver
2011-08-26 07:22:54 +08:00
# Installation.
make DESTDIR=$pkgdir install
# Desktop Integration.
install -Dm644 $srcdir/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop
}