wok annotate xxhash/receipt @ rev 25601

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 18:06:38 2023 +0000 (11 months ago)
parents 9ea6d3207601
children
rev   line source
pascal@24047 1 # SliTaz package receipt.
pascal@24047 2
pascal@24047 3 PACKAGE="xxhash"
pascal@24047 4 VERSION="0.8.0"
pascal@24047 5 CATEGORY="misc"
pascal@24047 6 SHORT_DESC="Extremely fast non-cryptographic hash algorithm."
pascal@24047 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@24047 8 LICENSE="BSD GPL2"
pascal@24047 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24047 10 WEB_SITE="http://cyan4973.github.io/xxHash/"
pascal@24047 11 WGET_URL="https://github.com/Cyan4973/xxHash/archive/refs/tags/v$VERSION.tar.gz"
pascal@24047 12
pascal@24048 13 DEPENDS="xxhash-lib"
pascal@24048 14
pascal@25601 15 # What is the latest version available today?
pascal@24047 16 current_version()
pascal@24047 17 {
pascal@24047 18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25601 19 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24047 20 }
pascal@24047 21
pascal@24047 22 # Rules to configure and make the package.
pascal@24047 23 compile_rules()
pascal@24047 24 {
pascal@24047 25 sed -i 's|/local||' Makefile
pascal@24047 26 make &&
pascal@24047 27 make DESTDIR=$DESTDIR install
pascal@24047 28 }
pascal@24047 29
pascal@24047 30 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@24047 31 genpkg_rules()
pascal@24047 32 {
pascal@24047 33 mkdir -p $fs/usr/lib
pascal@24047 34 cp -a $install/usr/bin $fs/usr/
pascal@24047 35 }