wok annotate pth/receipt @ rev 24415

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 10 18:04:02 2022 +0000 (2022-02-10)
parents bf4a09ef1d2e
children 1805f71c5d9f
rev   line source
fraazz@585 1 # SliTaz package receipt.
fraazz@585 2
fraazz@585 3 PACKAGE="pth"
fraazz@585 4 VERSION="2.0.7"
pankso@588 5 CATEGORY="system-tools"
pankso@588 6 SHORT_DESC="C library for multithreading inside server applications."
fraazz@585 7 MAINTAINER="fraazz@altern.org"
pascal@15376 8 LICENSE="LGPL2.1"
fraazz@585 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
fraazz@585 10 WEB_SITE="http://www.gnu.org/software/pth/"
pascal@24415 11 WGET_URL="http://ftp.ossp.org/pkg/lib/pth/$TARBALL"
erjo@9942 12
slaxemulator@10851 13 DEPENDS="libltdl"
fraazz@585 14
pascal@24415 15 # What is the latest version available today?
pascal@24415 16 current_version()
pascal@24415 17 {
pascal@24415 18 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24415 19 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-||;s|.tar.*||" | sort -Vr | sed q
pascal@24415 20 }
pascal@24415 21
fraazz@585 22 # Rules to configure and make the package.
fraazz@585 23 compile_rules()
fraazz@585 24 {
fraazz@585 25 cd $src
gokhlayeh@11573 26 ./configure --prefix=/usr $CONFIGURE_ARGS &&
gokhlayeh@7977 27 make -j 1 &&
erjo@9942 28 make -j 1 DESTDIR=$DESTDIR install
fraazz@585 29 }
fraazz@585 30
fraazz@585 31 # Rules to gen a SliTaz package suitable for Tazpkg.
fraazz@585 32 genpkg_rules()
fraazz@585 33 {
pankso@588 34 mkdir -p $fs/usr/lib
pascal@15376 35 cp -a $install/usr/lib/*.so* $fs/usr/lib
fraazz@585 36 }
fraazz@585 37