2019-08-07 20:50:34 +10:00
|
|
|
# Description: High performance C-based HTTP client library built upon the Apache Portable Runtime (APR) library.
|
2019-08-07 07:07:30 -04:00
|
|
|
# URL: https://serf.apache.org/
|
|
|
|
# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
|
|
|
|
# Packager: Jose V Beneyto, sepen at crux dot nu
|
|
|
|
# Depends on: apr scons
|
2019-08-07 20:50:34 +10:00
|
|
|
|
|
|
|
name=serf
|
|
|
|
version=1.3.9
|
2020-04-14 11:57:01 -04:00
|
|
|
release=2
|
|
|
|
source=(https://archive.apache.org/dist/$name/$name-$version.tar.bz2
|
|
|
|
scons-py3.patch)
|
2019-08-07 20:50:34 +10:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
2020-04-14 11:57:01 -04:00
|
|
|
# Adjust to scons built with python3
|
|
|
|
# (should go away if/when python3 becomes default python)
|
|
|
|
patch -Np1 -i $SRC/scons-py3.patch
|
|
|
|
ln -s /usr/bin/python3 python
|
|
|
|
export PATH=$SRC/$name-$version:$PATH
|
|
|
|
|
2019-08-07 20:50:34 +10:00
|
|
|
# removes runtime path from shared library
|
2020-04-14 11:57:01 -04:00
|
|
|
sed -i -e '/Append/ s/RPATH=libdir,//' SConstruct
|
2019-08-07 20:50:34 +10:00
|
|
|
# disable building and installing of the static library
|
2020-04-14 11:57:01 -04:00
|
|
|
sed -i -e '/Default/ s/lib_static,//' SConstruct
|
|
|
|
sed -i -e '/Alias/ s/install_static,//' SConstruct
|
2019-08-07 20:50:34 +10:00
|
|
|
|
|
|
|
scons PREFIX=/usr LIBDIR=/usr/lib
|
|
|
|
scons install --install-sandbox=$PKG
|
|
|
|
|
2020-04-14 11:57:01 -04:00
|
|
|
# serf-1.3.9 does not install world writable files
|
2019-08-07 20:50:34 +10:00
|
|
|
chmod -cR go-w $PKG/usr/include/serf-1
|
|
|
|
}
|