void-packages/srcpkgs/cvm/template

36 lines
853 B
Bash

# Template file for 'cvm'
pkgname=cvm
version=0.97
revision=3
build_style=gnu-makefile
hostmakedepends="libtool"
makedepends="bglibs-devel"
short_desc="Credential Validation Modules"
maintainer="bougyman <bougyman@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://untroubled.org/cvm/"
distfiles="http://untroubled.org/cvm/cvm-${version}.tar.gz"
checksum=82e7751d63cc2ae91457e28b5326885beb1d082d4f0695f4fdaac5ffa70a0c47
pre_build() {
echo '/usr/bin' > conf-bin
echo '/usr/include' > conf-include
echo '/usr/lib' > conf-lib
echo "${CC} ${CFLAGS} -g" > conf-cc
echo "${CC} ${LDFLAGS}" > conf-ld
}
do_install() {
make install install_prefix=${DESTDIR}
}
cvm-devel_package() {
depends="cvm>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}