48 lines
1.6 KiB
Bash
48 lines
1.6 KiB
Bash
#!/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
|
|
pkgrel=01
|
|
pkgdesc="Application and library for reading bar codes from various sources"
|
|
arch=('x86_64')
|
|
url="https://github.com/mchehab/zbar"
|
|
depends=('dbus' 'imagemagick' 'libsm' 'libxv' 'v4l-utils')
|
|
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')
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/mchehab/zbar/archive/$pkgver.tar.gz")
|
|
|
|
prepare() {
|
|
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
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('LGPL')
|
|
|
|
sha512sums=('d73d71873bec68ee021997512a9edbd223f5f5fe43c66c4dd3502224ba6009be2e5e1714766cb8e1056244673e87e0939ed0319116f61d7371b5ab79fb5e04eb')
|
|
|
|
sha256sums=(25fdd6726d5c4c6f95c95d37591bfbb2dde63d13d0b10cb1350923ea8b11963b) # zbar-0.23.90.tar.gz
|