wok-6.x view zbar/receipt @ rev 25287
updated rsync (3.2.3 -> 3.2.4)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 18 17:50:55 2022 +0100 (2022-07-18) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="zbar"
4 VERSION="0.23.90"
5 CATEGORY="utilities"
6 SHORT_DESC="Decode barcode and QR code."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://github.com/mchehab/zbar"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 DEPENDS="atk cairo fontconfig freetype gcc83-lib-base gtk+
15 imagemagick jpeg libgio pango"
16 BUILD_DEPENDS="atk-dev cairo-dev fftw-dev fontconfig-dev freetype-dev
17 gcc83 gdk-pixbuf graphviz-dev gtk+-dev ilmbase-dev imagemagick-dev
18 jpeg-dev lcms-dev libgio-dev libtool libxml2-dev linux-api-headers
19 openexr-dev pango-dev util-linux-uuid-dev"
21 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # sed -i 's|w\(and/MagickWand\.h\)|MagickW\1|' configu* zbarimg/zbarimg.c
33 autoreconf -vfi &&
34 ./configure \
35 CC=gcc-83 \
36 CXX=g++-83 \
37 --prefix=/usr \
38 --mandir=/usr/share/man \
39 --localstatedir=/var \
40 --without-qt \
41 --without-python \
42 --disable-video \
43 --disable-doc \
44 $CONFIGURE_ARGS &&
45 make &&
46 make DESTDIR=$DESTDIR install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/lib/*.so* $fs/usr/lib
56 }