void-packages/srcpkgs/fdm/template

26 lines
808 B
Bash

# Template file for 'fdm'
pkgname=fdm
version=2.1
revision=2
build_style=gnu-configure
configure_args="ac_cv_func_strlcpy=no ac_cv_func_strlcat=no --enable-pcre"
hostmakedepends="automake bison"
makedepends="zlib-devel openssl-devel tdb-devel pcre-devel"
short_desc="Program to fetch and deliver mail"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="ISC"
homepage="https://github.com/nicm/fdm"
distfiles="https://github.com/nicm/${pkgname}/releases/download/${version}/${pkgname}-${version}.tar.gz"
checksum=858df2e6ef0836d940e8b8cc4fec333770fa9c97ba0f2485a9e63ed18b2cadff
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
post_install() {
vmkdir usr/share/doc/${pkgname}
cp -r examples ${DESTDIR}/usr/share/doc/${pkgname}
sed 17q fdm.c >LICENSE
vlicense LICENSE
}