wok view xplc/receipt @ rev 25607

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 19 13:00:59 2023 +0000 (10 months ago)
parents b0069c845544
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xplc"
4 VERSION="0.3.13"
5 CATEGORY="network"
6 MAINTAINER="jozee@slitaz.org"
7 LICENSE="LGPL2.1"
8 SHORT_DESC="Cross-Platform Lightweight Components"
9 WEB_SITE="https://xplc.sourceforge.net"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/xplc/$TARBALL"
12 TAGS=""
14 DEPENDS="gcc-lib-base"
15 BUILD_DEPENDS=""
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
22 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|;q"
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 ./configure --prefix=/usr --mandir=/usr/share/man \
29 --without-libuuid $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/lib/$PACKAGE-$VERSION
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/*so* $fs/usr/lib/
40 cp -a $install/usr/lib/$PACKAGE-$VERSION/*so* $fs/usr/lib/$PACKAGE-$VERSION
41 rm -f $fs/usr/bin/uuidgen
42 }