diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-08-20 12:08:20 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2013-08-20 12:08:20 -0300 |
commit | 6fed873916a710bbe23fbf86b38fa0100f3c4267 (patch) | |
tree | 75382b3152a2ecb8b65d9d593a329df9283af8e5 /pcr/zbar | |
parent | f1902a2852e3182a9dc67d2d4f63d7b91b25b226 (diff) | |
download | abslibre-6fed873916a710bbe23fbf86b38fa0100f3c4267.tar.gz abslibre-6fed873916a710bbe23fbf86b38fa0100f3c4267.tar.bz2 abslibre-6fed873916a710bbe23fbf86b38fa0100f3c4267.zip |
Monkeysign: OpenPGP Key Exchange for Humans
Diffstat (limited to 'pcr/zbar')
-rw-r--r-- | pcr/zbar/PKGBUILD | 40 | ||||
-rw-r--r-- | pcr/zbar/v4l1.patch | 24 |
2 files changed, 64 insertions, 0 deletions
diff --git a/pcr/zbar/PKGBUILD b/pcr/zbar/PKGBUILD new file mode 100644 index 000000000..120161a11 --- /dev/null +++ b/pcr/zbar/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: Marti Raudsepp <marti@juffo.org> +# Contributor: Radu Andries <admiral0@tuxfamily.org> +# Contributor: Andy Weidenbaum <archbaum@gmail.com> + +pkgname=zbar +pkgver=0.10 +pkgrel=3 +pkgdesc="Application and library for reading bar codes from various sources" +arch=('i686' 'x86_64') +url="http://zbar.sourceforge.net/" +license=('LGPL') +depends=('imagemagick' 'libxv') +makedepends=('gtk2' 'qt4' 'pygtk' 'v4l-utils') +source=("http://downloads.sourceforge.net/project/zbar/zbar/$pkgver/zbar-$pkgver.tar.bz2" + v4l1.patch) +optdepends=('pygtk: python2 widget' + 'gtk2: gtk2 widget' + 'qt4: qt4 widget') + +prepare() { + cd "$srcdir/zbar-$pkgver" + patch -p1 < ${srcdir}/v4l1.patch +} + +build() { + cd "$srcdir/zbar-$pkgver" + + ./configure --prefix=/usr CFLAGS="$CFLAGS -DNDEBUG" + + make +} + +package() { + cd "$srcdir/zbar-$pkgver" + make DESTDIR="$pkgdir" install +} + +# vim:set ts=2 sw=2 et: +md5sums=('0fd61eb590ac1bab62a77913c8b086a5' + '284f11ca2a5e009744c4a1b9e92d6953') diff --git a/pcr/zbar/v4l1.patch b/pcr/zbar/v4l1.patch new file mode 100644 index 000000000..150b0e695 --- /dev/null +++ b/pcr/zbar/v4l1.patch @@ -0,0 +1,24 @@ +Thanks to Andy Weidenbaum <archbaum@gmail.com> for providing this patch! + +--- ./zbar/video/v4l1.c 2013-03-06 23:24:22.996336417 -0800 ++++ ./zbar/video/v4l1.c 2013-03-06 23:29:29.789662369 -0800 +@@ -41,7 +41,7 @@ + #ifdef HAVE_SYS_MMAN_H + # include <sys/mman.h> + #endif +-#include <linux/videodev.h> ++#include <libv4l1-videodev.h> + + #include "video.h" + #include "image.h" +--- ./configure 2009-10-23 11:17:24.000000000 -0700 ++++ ./configure 2013-03-06 23:47:33.902966990 -0800 +@@ -18709,7 +18709,7 @@ + if test "x$enable_video" != "xno"; then + if test "x$win32" = "xno"; then + +-for ac_header in linux/videodev.h ++for ac_header in libv4l1-videodev.h + do + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` + if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |