2022-09-03 20:00:02 +02:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
|
|
# Website : https://pozol.eu
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=zbar
|
|
|
|
pkgver=0.23.90
|
2023-05-29 01:09:37 +02:00
|
|
|
pkgrel=03
|
2022-09-03 20:00:02 +02:00
|
|
|
pkgdesc="Application and library for reading bar codes from various sources"
|
|
|
|
url="https://github.com/mchehab/zbar"
|
2023-05-29 01:09:37 +02:00
|
|
|
depends=('dbus' 'imagemagick' 'libxv' 'v4l-utils')
|
2022-09-03 20:00:02 +02:00
|
|
|
makedepends=('gtk3' 'qt5-x11extras' 'python' 'xmlto' 'docbook-xsl' 'gobject-introspection')
|
|
|
|
optdepends=('gtk3: for zbar-gtk'
|
|
|
|
'qt5-x11extras: for zbar-qt'
|
|
|
|
'python: for zbar python bindings')
|
|
|
|
conflicts=('zbar-gtk' 'zbar-qt' 'python-zbar')
|
|
|
|
provides=('zbar-gtk' 'zbar-qt' 'python-zbar')
|
|
|
|
replaces=('zbar-gtk' 'zbar-qt' 'python-zbar')
|
2023-04-30 04:16:33 +02:00
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/mchehab/zbar/archive/$pkgver.tar.gz"
|
2023-05-29 01:09:37 +02:00
|
|
|
"$pkgname-0.23.90-python3.11.patch" # backport of https://github.com/mchehab/zbar/pull/231
|
|
|
|
"$pkgname-0.23.90-pkgconfig.patch::https://github.com/mchehab/zbar/commit/2d109b9ecb8a84ccfd20fbf0a018cdb44b4f757f.patch")
|
2022-09-03 20:00:02 +02:00
|
|
|
|
|
|
|
prepare() {
|
2023-04-30 04:16:33 +02:00
|
|
|
patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-0.23.90-python3.11.patch
|
2023-05-29 01:09:37 +02:00
|
|
|
patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-0.23.90-pkgconfig.patch
|
2022-09-03 20:00:02 +02:00
|
|
|
cd zbar-$pkgver
|
|
|
|
autoreconf -vfi
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd zbar-$pkgver
|
|
|
|
./configure --prefix=/usr --with-qt --with-gtk=gtk3 --with-dbusconfdir=/usr/share CFLAGS="$CFLAGS -DNDEBUG"
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd zbar-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
}
|
|
|
|
|
2023-04-30 04:16:33 +02:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
2022-09-03 20:00:02 +02:00
|
|
|
|
2023-04-30 04:16:33 +02:00
|
|
|
arch=(x86_64)
|
2022-09-03 20:00:02 +02:00
|
|
|
|
2023-04-30 04:16:33 +02:00
|
|
|
license=(LGPL)
|
2022-09-03 20:00:02 +02:00
|
|
|
|
2023-04-30 04:16:33 +02:00
|
|
|
sha256sums=(25fdd6726d5c4c6f95c95d37591bfbb2dde63d13d0b10cb1350923ea8b11963b # zbar-0.23.90.tar.gz
|
2023-05-29 01:09:37 +02:00
|
|
|
d22dc56452d3da03c97dd3e6037caaee861454b420a07daa08ab5692911d7872 # zbar-0.23.90-python3.11.patch
|
|
|
|
864384515f111354a926c6797b081c2907b2d052fc22ab6e1dcb1baac654535b) # zbar-0.23.90-pkgconfig.patch
|
2023-04-30 04:16:33 +02:00
|
|
|
|
2023-05-29 01:09:37 +02:00
|
|
|
## 13f36ad2922c0478fb704069401ef005e1a1a6757c76374a90738e827ac18c81 zbar-0.23.90-03-x86_64.pkg.tar.lz
|