summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorIraklis Karagkiozoglou2018-07-08 18:28:25 +0300
committerIraklis Karagkiozoglou2018-07-08 18:28:25 +0300
commitcb859a8f2688218d37fd748749b4c4d46f99c2bf (patch)
tree18890da36758e8dc5c270e004c30f3fdfe287770
downloadaur-cb859a8f2688218d37fd748749b4c4d46f99c2bf.tar.gz
Compile zbar with imagemagick 6
-rw-r--r--.SRCINFO36
-rw-r--r--PKGBUILD96
2 files changed, 132 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..453466c2c15
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,36 @@
+pkgbase = zbar-comp
+ pkgdesc = Application and library for reading bar codes from various sources
+ pkgver = 0.20
+ pkgrel = 3
+ url = https://github.com/procxx/zbar
+ arch = x86_64
+ license = LGPL
+ makedepends = libmagick6
+ makedepends = libxv
+ makedepends = v4l-utils
+ makedepends = qt5-x11extras
+ makedepends = pygtk
+ makedepends = python
+ makedepends = xmlto
+ makedepends = docbook-xsl
+ source = zbar-comp-0.20.tar.gz::https://github.com/procxx/zbar/archive/0.20.tar.gz
+ sha512sums = b013dc5f72f910e8e0dc73de1705684f76e5cb5b2026d48d3e149d3e8b46afdf273d06f32738c588c272218e95b5cd39d3c0b8be4eb9be17553504a13b11c144
+
+pkgname = zbar-comp
+ depends = libmagick6
+ depends = libsm
+ depends = libxv
+ depends = v4l-utils
+
+pkgname = zbar-gtk-comp
+ depends = zbar-comp
+ depends = gtk2
+
+pkgname = zbar-qt-comp
+ depends = zbar-comp
+ depends = qt5-x11extras
+
+pkgname = python2-zbar-comp
+ depends = zbar-gtk-comp
+ depends = pygtk
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0a625eea531
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,96 @@
+# $Id$
+# Maintainer: Iraklis Karagkiozoglou <iraklisk@outlook.com>
+
+pkgbase=zbar-comp
+pkgname=(zbar-comp zbar-gtk-comp zbar-qt-comp python2-zbar-comp)
+pkgver=0.20
+pkgrel=3
+pkgdesc="Application and library for reading bar codes from various sources"
+arch=('x86_64')
+url="https://github.com/procxx/zbar"
+license=('LGPL')
+makedepends=('libmagick6' 'libxv' 'v4l-utils' 'qt5-x11extras' 'pygtk' 'python' 'xmlto' 'docbook-xsl')
+conflits=('zbar')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/procxx/zbar/archive/$pkgver.tar.gz")
+sha512sums=('b013dc5f72f910e8e0dc73de1705684f76e5cb5b2026d48d3e149d3e8b46afdf273d06f32738c588c272218e95b5cd39d3c0b8be4eb9be17553504a13b11c144')
+
+prepare() {
+ cd zbar-$pkgver
+ autoreconf -vfi
+}
+
+build() {
+ cd zbar-$pkgver
+ PKG_CONFIG_PATH="/usr/lib/imagemagick6/pkgconfig" \
+ PYTHON="/usr/bin/python2" \
+ ./configure --prefix=/usr --with-qt --with-gtk CFLAGS="$CFLAGS -DNDEBUG"
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package_zbar-comp() {
+ depends=('libmagick6' 'libsm' 'libxv' 'v4l-utils')
+
+ cd zbar-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ 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/python2.7 \
+ "$pkgdir"/usr/bin/zbarcam-*
+}
+
+package_zbar-gtk-comp() {
+ depends=('zbar-comp' 'gtk2')
+
+ 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/python2.7 \
+ "$pkgdir"/usr/share \
+ "$pkgdir"/usr/bin/{zbarimg,zbarcam,zbarcam-qt}
+
+ mv ./zbargtk.h "$pkgdir"/usr/include/zbar/
+}
+
+package_zbar-qt-comp() {
+ depends=('zbar-comp' '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/python2.7 \
+ "$pkgdir"/usr/share \
+ "$pkgdir"/usr/bin/{zbarimg,zbarcam,zbarcam-gtk}
+
+ mv ./QZBar*.h "$pkgdir"/usr/include/zbar/
+}
+
+package_python2-zbar-comp() {
+ depends=('zbar-gtk-comp' 'pygtk')
+
+ cd zbar-$pkgver
+ make DESTDIR="$pkgdir" install
+
+ rm -r "$pkgdir"/usr/lib/*.so* \
+ "$pkgdir"/usr/include \
+ "$pkgdir"/usr/lib/pkgconfig \
+ "$pkgdir"/usr/{bin,share}
+}