wok annotate libzip/receipt @ rev 25770

dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 11:29:23 2024 +0000 (2 months ago)
parents 15650f5d595b
children
rev   line source
pascal@12805 1 # SliTaz package receipt.
pascal@12805 2
pascal@12805 3 PACKAGE="libzip"
Hans-G?nter@24855 4 VERSION="1.8.0"
pascal@12805 5 CATEGORY="misc"
pascal@12805 6 SHORT_DESC="C library for reading, creating, and modifying zip archives."
pascal@12805 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15482 8 LICENSE="BSD"
Hans-G?nter@21355 9 WEB_SITE="https://libzip.org/"
Hans-G?nter@21355 10
pascal@17256 11 TARBALL="$PACKAGE-$VERSION.tar.xz"
Hans-G?nter@21355 12 WGET_URL="${WEB_SITE}download/$TARBALL"
Hans-G?nter@21355 13
Hans-G?nter@21355 14 DEPENDS="zlib"
Hans-G?nter@21355 15 BUILD_DEPENDS="cmake zlib-dev"
Hans-G?nter@21355 16
pankso@16066 17 HOST_ARCH="i486 arm"
pascal@12805 18
pascal@24102 19 current_version()
pascal@24102 20 {
pascal@24102 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24102 22 sed '/Current/!d;s|.* is ||;s|<.*||;q'
pascal@24102 23 }
pascal@24102 24
pascal@12805 25 # Rules to configure and make the package.
pascal@12805 26 compile_rules()
pascal@12805 27 {
Hans-G?nter@24855 28 mkdir _build &&
Hans-G?nter@24855 29 cd _build &&
Hans-G?nter@24855 30 cmake .. \
Hans-G?nter@24855 31 -D CMAKE_INSTALL_PREFIX=/usr &&
Hans-G?nter@24855 32 make &&
Hans-G?nter@24855 33 make install
pascal@12805 34 }
pascal@12805 35
pascal@12805 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12805 37 genpkg_rules()
pascal@12805 38 {
Hans-G?nter@24855 39 cook_copy_folders bin
Hans-G?nter@24855 40 cook_copy_files *.so*
pascal@12805 41 }