void-packages/srcpkgs/libmemcached/template

39 lines
968 B
Bash

# Template file for 'libmemcached'
pkgname=libmemcached
version=1.0.18
revision=6
build_style=gnu-configure
configure_args="--prefix=/usr"
hostmakedepends="perl"
makedepends="libevent-devel libsasl-devel memcached-devel"
short_desc="C/C++ library to memcached"
maintainer="John Regan <john@jrjrtech.com>"
license="BSD-3-Clause"
homepage="https://libmemcached.org/libMemcached.html"
distfiles="http://launchpad.net/${pkgname}/1.0/${version}/+download/${pkgname}-${version}.tar.gz"
checksum=e22c0bb032fde08f53de9ffbc5a128233041d9f33b5de022c0978a2149885f82
post_install() {
vlicense COPYING
}
libmemcached-devel_package() {
short_desc+=" - development files"
depends="libsasl-devel ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
}
}
libmemcached-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/man
}
}