[arch-commits] Commit in zbar/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Mar 17 10:00:34 UTC 2020


    Date: Tuesday, March 17, 2020 @ 10:00:34
  Author: felixonmars
Revision: 377803

archrelease: copy trunk to testing-x86_64

Added:
  zbar/repos/testing-x86_64/
  zbar/repos/testing-x86_64/PKGBUILD
    (from rev 377802, zbar/trunk/PKGBUILD)

----------+
 PKGBUILD |  107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 107 insertions(+)

Copied: zbar/repos/testing-x86_64/PKGBUILD (from rev 377802, zbar/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-03-17 10:00:34 UTC (rev 377803)
@@ -0,0 +1,107 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Marti Raudsepp <marti at juffo.org>
+# Contributor: Radu Andries <admiral0 at tuxfamily.org>
+# Contributor: Andy Weidenbaum <archbaum at gmail.com>
+
+pkgbase=zbar
+pkgname=(zbar zbar-gtk zbar-qt python-zbar)
+pkgver=0.23
+pkgrel=3
+pkgdesc="Application and library for reading bar codes from various sources"
+arch=('x86_64')
+url="https://github.com/mchehab/zbar"
+license=('LGPL')
+makedepends=('gtk3' 'imagemagick' 'libxv' 'v4l-utils' 'qt5-x11extras' 'python' 'xmlto'
+             'docbook-xsl' 'gobject-introspection')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mchehab/zbar/archive/$pkgver.tar.gz")
+sha512sums=('bc2667a2a5a5f2e9fd3f39e57bf1d7f860b20a0b5faffc38791d222a6ff0414aff880295ce5ccb92acce7250503f2a7f48ac12651cf82cfb1933b302da26e393')
+
+build() {
+  cd zbar-$pkgver
+  autoreconf -vfi
+  ./configure --prefix=/usr --with-qt --with-gtk=gtk3 CFLAGS="$CFLAGS -DNDEBUG"
+  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+}
+
+package_zbar() {
+  depends=('dbus' 'imagemagick' 'libsm' 'libxv' 'v4l-utils')
+
+  cd zbar-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  install -dm755 "$pkgdir"/usr/share/dbus-1/system.d
+  mv "$pkgdir"{/etc,/usr/share}/dbus-1/system.d/org.linuxtv.Zbar.conf
+
+  rm -r "$pkgdir"/usr/lib/libzbar{gtk,qt}.so* \
+        "$pkgdir"/usr/lib/*.a \
+        "$pkgdir"/usr/include/zbar/zbargtk.h \
+        "$pkgdir"/usr/include/zbar/QZBar*.h \
+        "$pkgdir"/usr/lib/pkgconfig/zbar-{gtk,qt}.pc \
+        "$pkgdir"/usr/lib/python3.8 \
+        "$pkgdir"/usr/bin/zbarcam-* \
+        "$pkgdir"/usr/share/gir-1.0 \
+        "$pkgdir"/usr/lib/girepository-1.0
+
+  rmdir "$pkgdir"/etc{/dbus-1/system.d,/dbus-1,}
+}
+
+package_zbar-gtk() {
+  depends=('zbar' 'gtk3')
+
+  cd zbar-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  mv "$pkgdir"/usr/include/zbar/zbargtk.h ./
+
+  rm -r "$pkgdir"/usr/lib/libzbar{,qt}.so* \
+        "$pkgdir"/usr/lib/*.a \
+        "$pkgdir"/usr/include/zbar/*.h \
+        "$pkgdir"/usr/include/zbar.h \
+        "$pkgdir"/usr/lib/pkgconfig/zbar{,-qt}.pc \
+        "$pkgdir"/usr/lib/python3.8 \
+        "$pkgdir"/usr/share/{doc,man} \
+        "$pkgdir"/usr/bin/{zbarimg,zbarcam,zbarcam-qt} \
+        "$pkgdir"/etc
+
+  mv ./zbargtk.h "$pkgdir"/usr/include/zbar/
+}
+
+package_zbar-qt() {
+  depends=('zbar' 'qt5-x11extras')
+
+  cd zbar-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  mv "$pkgdir"/usr/include/zbar/QZBar*.h ./
+
+  rm -r "$pkgdir"/usr/lib/libzbar{,gtk}.so* \
+        "$pkgdir"/usr/lib/*.a \
+        "$pkgdir"/usr/include/zbar/*.h \
+        "$pkgdir"/usr/include/zbar.h \
+        "$pkgdir"/usr/lib/pkgconfig/zbar{,-gtk}.pc \
+        "$pkgdir"/usr/lib/python3.8 \
+        "$pkgdir"/usr/share \
+        "$pkgdir"/usr/bin/{zbarimg,zbarcam,zbarcam-gtk} \
+        "$pkgdir"/etc \
+        "$pkgdir"/usr/lib/girepository-1.0
+
+  mv ./QZBar*.h "$pkgdir"/usr/include/zbar/
+}
+
+package_python-zbar() {
+  depends=('python' 'zbar')
+
+  cd zbar-$pkgver
+  make DESTDIR="$pkgdir" install
+
+  rm -r "$pkgdir"/usr/lib/*.so* \
+        "$pkgdir"/usr/lib/*.a \
+        "$pkgdir"/usr/include \
+        "$pkgdir"/usr/lib/pkgconfig \
+        "$pkgdir"/usr/{bin,share} \
+        "$pkgdir"/etc \
+        "$pkgdir"/usr/lib/girepository-1.0
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list