void-packages/srcpkgs/serf/template
2014-08-16 18:00:04 +02:00

31 lines
849 B
Text

# Template file for 'serf'
pkgname=serf
version=1.3.7
revision=1
hostmakedepends="unzip scons>=2.3.0"
makedepends="zlib-devel gdbm-devel libressl-devel apr-util-devel"
short_desc="High-performance asynchronous HTTP client library"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Apache-2.0"
homepage="http://code.google.com/p/serf/"
distfiles="http://serf.googlecode.com/svn/src_releases/${pkgname}-${version}.zip"
checksum=1f15f212660ec1c8f00096650979c14deef3a4a4d4290f6da173ec6c767cbd01
do_build() {
scons ${makejobs} CFLAGS="$CFLAGS" PREFIX=/usr
}
do_install() {
vmkdir usr
scons PREFIX=${DESTDIR}/usr install
}
serf-devel_package() {
depends="apr-util-devel serf>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}