# $Id$ # Maintainer: Felix Yan # Contributor: Marti Raudsepp # Contributor: Radu Andries # Contributor: Andy Weidenbaum # Mantainer: Lorenzo Ferrillo _pkgname=zbar pkgname=lib32-zbar pkgver=0.23.90 pkgrel=1 pkgdesc="Application and library for reading bar codes from various sources. 32bit libraries only version" arch=('x86_64') url="https://github.com/mchehab/zbar" license=('LGPL') depends=('zbar' 'lib32-v4l-utils' 'lib32-dbus' 'lib32-libsm' 'lib32-libxv') makedepends=('docbook-xsl' 'xmlto') source=("$_pkgname-$pkgver.tar.gz::https://github.com/mchehab/zbar/archive/$pkgver.tar.gz") sha256sums=('25fdd6726d5c4c6f95c95d37591bfbb2dde63d13d0b10cb1350923ea8b11963b') prepare() { cd zbar-$pkgver # patch -i ${srcdir}/configure.patch configure.ac autoreconf -vfi } build() { cd zbar-$pkgver export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH='/usr/lib32/pkgconfig' #export PYTHON='/usr/bin/python2-32' #export PYTHON_CONFIG='/usr/bin/python2-32-config' #PKG_CONFIG_PATH="/usr/lib32/imagemagick6/pkgconfig" ./configure --prefix=/usr --libdir=/usr/lib32 --without-python --without-qt --without-gtk --without-imagemagick --without-java CFLAGS="$CFLAGS -DNDEBUG" sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } package() { cd zbar-$pkgver make DESTDIR="$pkgdir" install rm -Rf "$pkgdir"/usr/lib32/*.a \ "$pkgdir"/usr/include/ \ "$pkgdir"/usr/bin \ "$pkgdir"/usr/share \ "$pkgdir"/etc }