1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Marti Raudsepp <marti@juffo.org>
3 # Contributor: Radu Andries <admiral0@tuxfamily.org>
4 # Contributor: Andy Weidenbaum <archbaum@gmail.com>
9 pkgdesc="Application and library for reading bar codes from various sources"
11 url="https://github.com/mchehab/zbar"
13 depends=('dbus' 'imagemagick' 'libsm' 'libxv' 'v4l-utils')
14 makedepends=('gtk3' 'qt5-x11extras' 'python' 'xmlto' 'docbook-xsl' 'gobject-introspection')
15 optdepends=('gtk3: for zbar-gtk'
16 'qt5-x11extras: for zbar-qt'
17 'python: for zbar python bindings')
18 conflicts=('zbar-gtk' 'zbar-qt' 'python-zbar')
19 provides=('zbar-gtk' 'zbar-qt' 'python-zbar')
20 replaces=('zbar-gtk' 'zbar-qt' 'python-zbar')
22 "$pkgname-$pkgver.tar.gz::https://github.com/mchehab/zbar/archive/refs/tags/$pkgver.tar.gz"
23 $pkgname-0.23.90-python3.11.patch # backport of https://github.com/mchehab/zbar/pull/231
25 sha512sums=('d73d71873bec68ee021997512a9edbd223f5f5fe43c66c4dd3502224ba6009be2e5e1714766cb8e1056244673e87e0939ed0319116f61d7371b5ab79fb5e04eb'
26 '4f8518fd93fe5209c2e615801f158cdd64cffaf232c38b3ef2883dc29f9938a72485133e44ab048fddf9f4ffa4da55fe13bdc64829a2f4ffa6cfde8c5fb348ad')
27 b2sums=('5d0c193509602dfb55741b421e1d28f1424ecec50aa3be584912544a587922c053284c41cf14ff0b4824095d0d376381ed055e7faf9ff394bd8d44fd9ed2971d'
28 '8a6a0c788db8bc3eba7a6787dd786ee8b9de14b95f1fd57a43a8eb9a0ab15f8495a31a57d4476373503ccb55c5148baa308bc4f8e9bd6edf07f6f572202b3b3b')
31 patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-0.23.90-python3.11.patch
38 ./configure --prefix=/usr --with-qt --with-gtk=gtk3 --with-dbusconfdir=/usr/share CFLAGS="$CFLAGS -DNDEBUG"
39 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
45 make DESTDIR="$pkgdir" install
48 # vim:set ts=2 sw=2 et: