wok annotate check/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 5fa396eb0eeb
children f2701f2b47f2
rev   line source
erjo@13410 1 # SliTaz package receipt.
erjo@13410 2
erjo@13410 3 PACKAGE="check"
Hans-G?nter@22591 4 VERSION="0.13.0"
erjo@13410 5 CATEGORY="system-tools"
Hans-G?nter@22591 6 SHORT_DESC="A unit testing framework for C."
erjo@13410 7 MAINTAINER="erjo@slitaz.org"
pascal@15202 8 LICENSE="LGPL2.1"
Hans-G?nter@20780 9 WEB_SITE="https://libcheck.github.io/check/"
Hans-G?nter@20780 10
erjo@13410 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
Hans-G?nter@20780 12 WGET_URL="https://github.com/libcheck/$PACKAGE/archive/$VERSION.tar.gz"
erjo@13410 13
erjo@13410 14 DEPENDS=""
Hans-G?nter@20782 15 BUILD_DEPENDS="autoconf automake libtool"
Hans-G?nter@22591 16
Hans-G?nter@20780 17 HOST_ARCH="i486 arm"
erjo@13410 18
pascal@24055 19 current_version()
pascal@24055 20 {
pascal@24055 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@24055 22 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
pascal@24055 23 }
pascal@24055 24
erjo@13410 25 # Rules to configure and make the package.
erjo@13410 26 compile_rules()
erjo@13410 27 {
Hans-G?nter@22591 28 autoreconf --install &&
Hans-G?nter@20780 29 ./configure $CONFIGURE_ARGS &&
Hans-G?nter@20780 30 make &&
Hans-G?nter@20780 31 make install
erjo@13410 32 }
erjo@13410 33
erjo@13410 34 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@13410 35 genpkg_rules()
erjo@13410 36 {
erjo@13410 37 mkdir -p $fs/usr/lib
Hans-G?nter@22591 38 cp -a $install/usr/lib/*.so* $fs/usr/lib
erjo@13410 39 }