void-packages/srcpkgs/serf/template
2018-03-01 20:23:06 +01:00

32 lines
869 B
Bash

# Template file for 'serf'
pkgname=serf
version=1.3.9
revision=4
nocross=yes
hostmakedepends="scons libressl-devel apr-util-devel"
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=549c2d21c577a8a9c0450facb5cca809f26591f048e466552240947bdf7a87cc
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
}
}