wok-next annotate serf/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 0ed3f456a542
rev   line source
al@20357 1 # SliTaz package receipt v2.
al@20357 2
al@20357 3 PACKAGE="serf"
al@20357 4 VERSION="1.3.9"
al@20357 5 CATEGORY="libdevel"
al@20357 6 SHORT_DESC="High-performance asynchronous HTTP client library"
al@20357 7 MAINTAINER="al.bobylev@gmail.com"
al@20357 8 LICENSE="Apache"
al@20357 9 WEB_SITE="https://serf.apache.org/"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/basicnet/serf.html"
al@20357 11
al@20357 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@20357 13 WGET_URL="https://archive.apache.org/dist/serf/$TARBALL"
al@20357 14
al@20739 15 BUILD_DEPENDS="scons2 apr-dev apr-util-dev"
al@21020 16 SPLIT="$PACKAGE-dev"
al@20357 17
al@20357 18 compile_rules() {
al@20357 19 sed -i "/Append/s:RPATH=libdir,::" SConstruct &&
al@20357 20 sed -i "/Default/s:lib_static,::" SConstruct &&
al@20357 21 sed -i "/Alias/s:install_static,::" SConstruct &&
al@20357 22
al@20357 23 scons PREFIX=/usr &&
al@20357 24 scons PREFIX=/usr install --install-sandbox=$install
al@20357 25 }
al@20357 26
al@20357 27 genpkg_rules() {
al@20357 28 case $PACKAGE in
al@20357 29 serf)
al@20357 30 copy @std
al@20621 31 DEPENDS="apr apr-util expat gdbm libldap openssl util-linux-uuid zlib"
al@20357 32 ;;
al@20357 33 *-dev)
al@20357 34 copy @dev
al@20621 35 DEPENDS="serf expat-dev gdbm-dev openldap-dev openssl-dev \
al@20357 36 util-linux-uuid-dev zlib-dev"
al@20357 37 ;;
al@20357 38 esac
al@20357 39 }
al@20443 40