wok view pth/receipt @ rev 24976

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