diff options
author | Danny Rawlins <monster.romster@gmail.com> | 2019-08-07 20:50:34 +1000 |
---|---|---|
committer | Danny Rawlins <monster.romster@gmail.com> | 2019-08-07 20:54:50 +1000 |
commit | 761f158738a7b2daf2a5651776039e8f61d0c2dd (patch) | |
tree | 96a13778c1a7af28919413bfd17108e0b7d22079 /serf/Pkgfile | |
parent | e85b94e068e262dff4f124d41fd532b22bbb4d03 (diff) | |
download | contrib-761f158738a7b2daf2a5651776039e8f61d0c2dd.tar.gz contrib-761f158738a7b2daf2a5651776039e8f61d0c2dd.tar.xz |
serf: opt -> contrib
Diffstat (limited to 'serf/Pkgfile')
-rw-r--r-- | serf/Pkgfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/serf/Pkgfile b/serf/Pkgfile new file mode 100644 index 000000000..54479edbc --- /dev/null +++ b/serf/Pkgfile @@ -0,0 +1,26 @@ +# 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 +} |