This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 25th, 2012  |  syntax: None  |  size: 1.30 KB  |  views: 81  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: speps <speps at aur dot archlinux dot org>
  2.  
  3. _kver=`uname -r | sed 's/\..-.//'`
  4. pkgname=v4l2loopback
  5. pkgver=0.6.2
  6. pkgrel=1
  7. pkgdesc="A kernel module to create V4L2 loopback devices"
  8. arch=(i686 x86_64)
  9. url="https://github.com/umlaeute/v4l2loopback/"
  10. license=('GPL')
  11. depends=('glibc')
  12. makedepends=('linux-headers' 'help2man')
  13. optdepends=('v4l-utils: for v4l2loopback-ctl and utils'
  14.             'gstreamer0.10: for v4l2loopback-ctl and utils')
  15. install="$pkgname.install"
  16. source=("${url}tarball/v$pkgver")
  17. md5sums=('ecfce0b77673fdf91cb3827c9bdfcfde')
  18.  
  19. build() {
  20.   cd "$srcdir/umlaeute-$pkgname-"*
  21.  
  22.   make
  23.   cd examples && make
  24. }
  25.  
  26. package() {
  27.   cd "$srcdir/umlaeute-$pkgname-"*
  28.  
  29.   make DESTDIR="$pkgdir/" PREFIX=/usr install-{man,utils}
  30.  
  31.   # module
  32.   install -Dm644 $pkgname.ko \
  33.     "$pkgdir/usr/lib/modules/extramodules-$_kver/$pkgname.ko"
  34.  
  35.   # docs
  36.   install -Dm644 doc/v4l2.html \
  37.     "$pkgdir/usr/share/doc/$pkgname/v4l2.html"
  38.   install -Dm644 README NEWS \
  39.     "$pkgdir/usr/share/doc/$pkgname"
  40.  
  41.   # examples
  42.   install -d "$pkgdir/usr/share/$pkgname/examples"
  43.   install -Dm644 examples/{*.c,README,Makefile} \
  44.     "$pkgdir/usr/share/$pkgname/examples"
  45.   install -Dm755 examples/{yuv4mpeg_to_v4l2,restarting-writer.sh} \
  46.     "$pkgdir/usr/bin"
  47. }
  48.  
  49. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data