wok annotate zbar/receipt @ rev 24362

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