void-packages/srcpkgs/cvm/template

40 lines
931 B
Bash

# Template file for 'cvm'
pkgname=cvm
version=0.97
revision=4
build_style=gnu-makefile
hostmakedepends="libtool"
makedepends="bglibs-devel"
short_desc="Credential Validation Modules"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://untroubled.org/cvm/"
distfiles="http://untroubled.org/cvm/cvm-${version}.tar.gz"
checksum=82e7751d63cc2ae91457e28b5326885beb1d082d4f0695f4fdaac5ffa70a0c47
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
makedepends+=" libxcrypt-devel"
fi
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"
}
}