# SliTaz package receipt. PACKAGE="serf" VERSION="1.3.9" CATEGORY="network" SHORT_DESC="high performance C-based HTTP client library" MAINTAINER="pascal.bellard@slitaz.org" LICENSE="Apache" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="https://serf.apache.org/" WGET_URL="https://archive.apache.org/dist/serf/$TARBALL" DEPENDS="libssl zlib apr apr-util" BUILD_DEPENDS="scons apr-dev apr-util-dev openssl-dev zlib-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { scons && scons PREFIX=$DESTDIR/usr install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }