27 lines
848 B
Plaintext
27 lines
848 B
Plaintext
# Description: High performance C-based HTTP client library built upon the Apache Portable Runtime (APR) library.
|
|
# URL: https://serf.apache.org/
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
# Packager: Jose V Beneyto, sepen at crux dot nu
|
|
# Depends on: apr scons
|
|
|
|
name=serf
|
|
version=1.3.9
|
|
release=1
|
|
source=(https://archive.apache.org/dist/$name/$name-$version.tar.bz2)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
# removes runtime path from shared library
|
|
sed '/Append/ s/RPATH=libdir,//' -i SConstruct
|
|
# disable building and installing of the static library
|
|
sed '/Default/ s/lib_static,//' -i SConstruct
|
|
sed '/Alias/ s/install_static,//' -i SConstruct
|
|
|
|
scons PREFIX=/usr LIBDIR=/usr/lib
|
|
scons install --install-sandbox=$PKG
|
|
|
|
# serf-1.3.9 do not install world writable files
|
|
chmod -cR go-w $PKG/usr/include/serf-1
|
|
}
|