updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / v4l2loopback / PKGBUILD
blob5d5ec2c8ce9fca8a85f2ccc47b56436ba125a1dc
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 pkgname=v4l2loopback
4 pkgver=0.4.0
5 pkgrel=2
6 pkgdesc="A kernel module to create V4L2 loopback devices"
7 arch=(i686 x86_64)
8 url="https://github.com/umlaeute/v4l2loopback/"
9 license=('GPL')
10 makedepends=('kernel26-headers')
11 conflicts=("$pkgname-svn" "$pkgname-git")
12 install="$pkgname.install"
13 source=("${url}tarball/v$pkgver")
14 md5sums=('48be34acdedab1a6a1b3da8fdef76e6e')
16 build() {
17   cd `find "$srcdir" -maxdepth 1 -mindepth 1 -type d`
19   make
22 package() {
23   cd `find "$srcdir" -maxdepth 1 -mindepth 1 -type d`
25   # module
26   install -Dm644 $pkgname.ko "$pkgdir/lib/modules/`uname -r`/kernel/drivers/misc/$pkgname.ko"
28   # docs
29   install -Dm644 doc/v4l2.html "$pkgdir/usr/share/doc/$pkgname/v4l2.html"
30   install -Dm644 README NEWS "$pkgdir/usr/share/doc/$pkgname"
32   # example
33   install -d "$pkgdir/usr/share/$pkgname/examples"
34   install -Dm644 examples/* "$pkgdir/usr/share/$pkgname/examples"
37 # vim:set ts=2 sw=2 et: