Guest User

eViacam updated PKGBUILD ArchLinux

a guest
Sep 12th, 2013
84
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Juanma Hernández <juanmah@gmail.com>
  2.  
  3. pkgname=eviacam
  4. pkgver=1.7.0
  5. pkgrel=2
  6. pkgdesc="eViacam - Mouse replacement software that moves the pointer as you move your head."
  7. arch=('i686' 'x86_64')
  8. url="http://eviacam.sourceforge.net/"
  9. license=('GPL')
  10. depends=('opencv' 'wxgtk' 'libxtst')
  11. makedepends=('')
  12. provides=('eviacam')
  13. source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${pkgname}_${pkgver}.orig.tar.gz"
  14.     "01-visionpipeline.patch"
  15.     "02-libwebcam.patch")
  16. md5sums=('2c0963983a26f99f1ec629284b7c493e'
  17.          'b84b5e9f38d9d8173b8662c94043040f'
  18.               '4f312537e932bd327fc0a31ba27886cc')
  19.  
  20. build() {
  21.     cd $srcdir/$pkgname-$pkgver
  22.     patch -p0 < $srcdir/01-visionpipeline.patch
  23.     patch -p0 < $srcdir/02-libwebcam.patch
  24.     ./configure --prefix=/usr LIBS="-lopencv_core -lopencv_legacy -lopencv_imgproc -lopencv_highgui -lopencv_objdetect"
  25.     make
  26. }
  27.  
  28. package() {
  29.     cd $srcdir/$pkgname-$pkgver
  30.     make DESTDIR=$pkgdir install
  31. }
RAW Paste Data