contrib/serf/Pkgfile

27 lines
867 B
Plaintext
Raw Normal View History

2019-08-07 12:50:34 +02:00
# Description: High performance C-based HTTP client library built upon the Apache Portable Runtime (APR) library.
2019-08-07 13:07:30 +02: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 12:50:34 +02:00
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
}