wok annotate xxhash/receipt @ rev 24047
Up ipxe (1.21.1), rsync (3.2.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 10 19:33:04 2021 +0000 (2021-05-10) |
parents | |
children | 9ea6d3207601 |
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@24047 | 13 current_version() |
pascal@24047 | 14 { |
pascal@24047 | 15 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24047 | 16 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24047 | 17 } |
pascal@24047 | 18 |
pascal@24047 | 19 # Rules to configure and make the package. |
pascal@24047 | 20 compile_rules() |
pascal@24047 | 21 { |
pascal@24047 | 22 sed -i 's|/local||' Makefile |
pascal@24047 | 23 make && |
pascal@24047 | 24 make DESTDIR=$DESTDIR install |
pascal@24047 | 25 } |
pascal@24047 | 26 |
pascal@24047 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@24047 | 28 genpkg_rules() |
pascal@24047 | 29 { |
pascal@24047 | 30 mkdir -p $fs/usr/lib |
pascal@24047 | 31 cp -a $install/usr/bin $fs/usr/ |
pascal@24047 | 32 cp -a $install/usr/lib/*.so* $fs/usr/lib/ |
pascal@24047 | 33 } |