opt/serf/Pkgfile

27 lines
848 B
Plaintext
Raw Normal View History

# 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
2017-01-07 08:23:27 +01:00
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
2017-01-07 08:23:27 +01:00
# serf-1.3.9 do not install world writable files
chmod -cR go-w $PKG/usr/include/serf-1
}