wok view bsc/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 92e5ef674bb8
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="bsc"
4 VERSION="3.1.0"
5 CATEGORY="base-system"
6 SHORT_DESC="High performance block-sorting data compression."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3 LGPL3 Apache"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://libbsc.com/"
11 WGET_URL="https://github.com/IlyaGrebnov/libbsc/archive/$VERSION.tar.gz"
12 TAGS="compression"
14 DEPENDS="gcc-lib-base libgomp"
16 current_version()
17 {
18 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
19 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # LIBBSC_SORT_TRANSFORM_SUPPORT is not free and not used.
26 make
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 cp -a $src/bsc $fs/usr/bin
34 }