wok-current view serf/receipt @ rev 25268
xorg-cf-files/Imake.tmpl: update ArCmd
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 17 14:59:20 2022 +0000 (2022-07-17) |
parents | 934055de50e2 |
children | 4e2caf3cd17b |
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://www.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 }