wok-6.x annotate exiv2/receipt @ rev 24436

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 13:09:42 2022 +0000 (2022-02-13)
parents 5baa9d957a85
children b2a37165af08
rev   line source
jozee@2725 1 # SliTaz package receipt.
jozee@2725 2
jozee@2725 3 PACKAGE="exiv2"
pascal@23879 4 VERSION="0.27.3"
jozee@2725 5 CATEGORY="graphics"
Hans-G?nter@22750 6 SHORT_DESC="Exif and Iptc metadata manipulation library and tools."
jozee@2725 7 MAINTAINER="jozee@slitaz.org"
pascal@15588 8 LICENSE="GPL2"
pascal@21145 9 WEB_SITE="https://www.exiv2.org/"
Hans-G?nter@20899 10
Hans-G?nter@20899 11 TARBALL="$PACKAGE-$VERSION-Source.tar.gz"
Hans-G?nter@22750 12 WGET_URL="${WEB_SITE}builds/$TARBALL"
Hans-G?nter@22750 13
Hans-G?nter@22750 14 DEPENDS="expat gcc-lib-base zlib"
Hans-G?nter@22750 15 BUILD_DEPENDS="cmake expat-dev gcc-lib-base zlib-dev"
Hans-G?nter@22750 16
pankso@16269 17 HOST_ARCH="i486 arm"
jozee@2725 18
pascal@24436 19 # What is the latest version available today?
pascal@24436 20 current_version()
pascal@24436 21 {
pascal@24436 22 wget -O - https://exiv2.org/download.html 2>/dev/null | \
pascal@24436 23 sed '/Exiv2 v/!d;/ource/!d;s|.*v2-||;s|-.*||;q'
pascal@24436 24 }
pascal@24436 25
jozee@2725 26 # Rules to configure and make the package.
jozee@2725 27 compile_rules()
jozee@2725 28 {
Hans-G?nter@20899 29 mkdir build
Hans-G?nter@20899 30 cd build
Hans-G?nter@22750 31 cmake .. \
Hans-G?nter@22750 32 -G "Unix Makefiles" \
Hans-G?nter@20899 33 -DCMAKE_INSTALL_PREFIX=/usr &&
Hans-G?nter@20899 34 cmake --build . &&
Hans-G?nter@20899 35 make -j 1 &&
pascal@15588 36 make DESTDIR=$DESTDIR install
jozee@2725 37 }
jozee@2725 38
jozee@2725 39 # Rules to gen a SliTaz package suitable for Tazpkg.
jozee@2725 40 genpkg_rules()
jozee@2725 41 {
jozee@2725 42 mkdir -p $fs/usr/lib
Hans-G?nter@22750 43
Hans-G?nter@22750 44 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22750 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
jozee@2725 46 }