wok annotate libccls/receipt @ rev 24917

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