void-packages/srcpkgs/serf/template
2016-10-06 03:48:55 -04:00

31 lines
834 B
Bash

# Template file for 'serf'
pkgname=serf
version=1.3.8
revision=10
hostmakedepends="unzip scons"
makedepends="zlib-devel gdbm-devel libressl-devel apr-util-devel"
short_desc="High-performance asynchronous HTTP client library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Apache-2.0"
homepage="http://serf.apache.org"
distfiles="https://archive.apache.org/dist/serf/serf-${version}.tar.bz2"
checksum=e0500be065dbbce490449837bb2ab624e46d64fc0b090474d9acaa87c82b2590
do_build() {
scons ${makejobs} CC="$CC" 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
}
}