opt/serf/Pkgfile

24 lines
765 B
Plaintext
Raw Normal View History

# Description: High performance C-based HTTP client library built upon the Apache Portable Runtime (APR) library.
# URL: https://code.google.com/p/serf/
# 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.8
release=1
source=(https://serf.googlecode.com/svn/src_releases/$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
}