blob: 05cb5b923b7afc25201dcb3b7faf494b182f7f14 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Diego Queiroz <diego.queiroz@gmail.com>
# Maintainer: Diego Queiroz <diego.queiroz@gmail.com>
pkgname=zbar
pkgver=0.23
pkgrel=0
pkgdesc="Port of ZBAR BAR CODE READER"
url="http://zbar.sourceforge.net/"
arch="all"
license="LGPL-2.0-or-later"
depends="py3-gobject3"
makedepends="imagemagick-dev gtk+-dev qt5-qtx11extras-dev lcms2-dev
automake autoconf libtool xmlto docbook-xsl libxv-dev python3-dev"
subpackages="
$pkgname-dev
$pkgname-doc
lib$pkgname:zbarlibs
lib${pkgname}qt:qtlibs
lib${pkgname}gtk:gtklibs
py3-${pkgname}:py
"
source="
$pkgname-$pkgver.tar.gz::https://github.com/mchehab/zbar/archive/$pkgver.tar.gz
"
prepare() {
default_prepare
autoreconf -fi
}
build() {
./configure --prefix=/usr --disable-video --with-python=python3
make
}
package() {
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/lib/*.a
}
zbarlibs() {
depends=""
pkgdesc="$pkgdesc (library)"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libzbar.so.* "$subpkgdir"/usr/lib
}
qtlibs() {
depends=""
pkgdesc="$pkgdesc (Qt5 library)"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libzbarqt.so.* "$subpkgdir"/usr/lib
}
gtklibs() {
depends=""
pkgdesc="$pkgdesc (Gtk+2 library)"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libzbargtk.so.* "$subpkgdir"/usr/lib
}
py() {
depends=""
pkgdesc="python3 bindings for ZBar"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib
}
sha512sums="bc2667a2a5a5f2e9fd3f39e57bf1d7f860b20a0b5faffc38791d222a6ff0414aff880295ce5ccb92acce7250503f2a7f48ac12651cf82cfb1933b302da26e393 zbar-0.23.tar.gz"
|