wok annotate libhx/receipt @ rev 24411

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 09 17:57:59 2022 +0000 (2022-02-09)
parents a8f0449114d3
children a6336704378f
rev   line source
pascal@2442 1 # SliTaz package receipt.
pascal@2442 2
pascal@2442 3 PACKAGE="libhx"
Hans-G?nter@23074 4 VERSION="3.24"
pascal@2442 5 CATEGORY="development"
Hans-G?nter@23074 6 SHORT_DESC="Data structures and functions for scripting languages."
pascal@2442 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15081 8 LICENSE="LGPL3 LGPL2.1"
Hans-G?nter@23074 9 WEB_SITE="http://libhx.sourceforge.net/"
Hans-G?nter@23074 10
pascal@2442 11 SOURCE="libHX"
pascal@18455 12 TARBALL="$SOURCE-$VERSION.tar.xz"
pascal@2442 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@2442 14
pascal@12119 15 DEPENDS="coreutils-file-special"
pascal@12119 16 BUILD_DEPENDS="coreutils-file-special"
pascal@12119 17
pascal@24411 18 # What is the latest version available today?
pascal@24411 19 current_version()
pascal@24411 20 {
pascal@24411 21 wget -O - https://sourceforge.net/projects/libhx/files/libHX/ 2>/dev/null | \
pascal@24411 22 sed '/scope="row/!d;s|.*/libHX-||;s|.tar.*||;q'
pascal@24411 23 }
pascal@24411 24
pascal@2442 25 # Rules to configure and make the package.
pascal@2442 26 compile_rules()
pascal@2442 27 {
Hans-G?nter@23074 28 ./configure \
Hans-G?nter@23074 29 --prefix=/usr \
Hans-G?nter@23074 30 $CONFIGURE_ARGS &&
pascal@2442 31 make &&
pascal@12119 32 make DESTDIR=$DESTDIR install
pascal@2442 33 }
pascal@2442 34
pascal@2442 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2442 36 genpkg_rules()
pascal@2442 37 {
pascal@2442 38 mkdir -p $fs/usr/lib
Hans-G?nter@23074 39 cp -a $install/usr/lib/libHX.so* $fs/usr/lib
pascal@2442 40 }