wok annotate opencv/receipt @ rev 25600

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 15:14:43 2023 +0000 (11 months ago)
parents 82053bab32c1
children
rev   line source
pascal@18788 1 # SliTaz package receipt.
pascal@18788 2
pascal@18788 3 PACKAGE="opencv"
Hans-G?nter@24165 4 VERSION="4.5.5"
pascal@18788 5 CATEGORY="development"
Hans-G?nter@21617 6 SHORT_DESC="Open source computer vision library."
pascal@18788 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18788 8 LICENSE="BSD"
Hans-G?nter@21617 9 WEB_SITE="https://opencv.org/"
Hans-G?nter@21617 10
pascal@18788 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@21617 12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION/$TARBALL"
pascal@18788 13
Hans-G?nter@23262 14 DEPENDS="ffmpeg gcc83-lib-base gtk+ jpeg libpng tiff"
Hans-G?nter@24165 15 BUILD_DEPENDS="cmake ffmpeg-dev gcc83 gtk+-dev jpeg-dev libgnutls
Hans-G?nter@21617 16 libpng-dev tiff-dev"
pascal@18788 17
pascal@25600 18 # What is the latest version available today?
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25600 22 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 23 }
pascal@24055 24
pascal@18788 25 # Rules to configure and make the package.
pascal@18788 26 compile_rules()
pascal@18788 27 {
Hans-G?nter@21617 28 export CC=gcc-83
Hans-G?nter@21617 29 export CXX=g++-83
Hans-G?nter@23262 30 export LDFLAGS="$LDFLAGS -latomic"
Hans-G?nter@21617 31
Hans-G?nter@24165 32 mkdir _build &&
Hans-G?nter@24165 33 cd _build &&
Hans-G?nter@23262 34 cmake .. \
Hans-G?nter@24165 35 -D CMAKE_INSTALL_PREFIX=/usr \
Hans-G?nter@24165 36 -D ENABLE_PRECOMPILED_HEADERS=OFF &&
pascal@18788 37 make &&
Hans-G?nter@24165 38 make install DESTDIR=$DESTDIR
pascal@18788 39 }
pascal@18788 40
pascal@18788 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18788 42 genpkg_rules()
pascal@18788 43 {
Hans-G?nter@24165 44 cook_copy_folders bin
Hans-G?nter@24165 45 cook_copy_folders share
Hans-G?nter@24165 46 cook_copy_files *.so*
pascal@18788 47 }