wok view serf/receipt @ rev 25562
ext4magic: add current_version()
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 01 08:21:00 2023 +0000 (18 months ago) |
parents | cb67b4f8be05 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="serf"
4 VERSION="1.3.9"
5 CATEGORY="network"
6 SHORT_DESC="high performance C-based HTTP client library"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="Apache"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://serf.apache.org/"
11 WGET_URL="https://archive.apache.org/dist/serf/$TARBALL"
13 DEPENDS="libssl zlib apr apr-util"
14 BUILD_DEPENDS="scons apr-dev apr-util-dev openssl-dev zlib-dev"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - ${WGET_URL%/*} 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 scons &&
27 scons PREFIX=$DESTDIR/usr install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 }