wok annotate lz5/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents 88dbf519f075
children
rev   line source
pascal@18926 1 # SliTaz package receipt.
pascal@18926 2
pascal@18926 3 PACKAGE="lz5"
pascal@19691 4 VERSION="2.0"
pascal@18926 5 CATEGORY="base-system"
pascal@18926 6 SHORT_DESC="A modification of LZ4 with a better ratio but slower."
pascal@18926 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18926 8 LICENSE="BSD GPL2"
pascal@18926 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18926 10 WEB_SITE="https://github.com/inikep/lz5"
pascal@18926 11 WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
pascal@18926 12
pascal@18926 13 BUILD_DEPENDS="pkg-config"
pascal@18926 14
pascal@24055 15 current_version()
pascal@24055 16 {
pascal@24055 17 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 18 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q'
pascal@24055 19 }
pascal@24055 20
pascal@18926 21 # Rules to configure and make the package.
pascal@18926 22 compile_rules()
pascal@18926 23 {
pascal@18926 24 sed -i 's|/usr/local|/usr|' Makefile */Makefile
pascal@18926 25 make &&
pascal@18926 26 make DESTDIR=$DESTDIR install
pascal@18926 27 }
pascal@18926 28
pascal@18926 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18926 30 genpkg_rules()
pascal@18926 31 {
pascal@19691 32 mkdir -p $fs/usr/lib
pascal@19691 33 cp -a $install/usr/bin $fs/usr
pascal@19691 34 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@18926 35 }