wok view libccls/receipt @ rev 25583

Update some wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 31 16:56:53 2023 +0000 (18 months ago)
parents 65d7d867e0c1
children d3556b8f5c3d
line source
1 # SliTaz package receipt.
3 PACKAGE="libccls"
4 VERSION="0.7.0"
5 CATEGORY="development"
6 SHORT_DESC="server library for internet cafe programs"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://ccl.sourceforge.net"
11 WGET_URL="http://nchc.dl.sourceforge.net/project/ccl/$PACKAGE/$VERSION/$TARBALL"
12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 DEPENDS="openssl sqlite glib"
15 BUILD_DEPENDS="openssl-dev sqlite-dev glib-dev file"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://sourceforge.net/projects/ccl/files/libccls/ 2>/dev/null | \
21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
22 sed '/scope="row/!d;s|.*/libccls/||;s|/.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src
29 ./configure \
30 --prefix=/usr \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 }