void-packages/srcpkgs/fdm/template
Jürgen Buchmüller 7e811cb46d fdm: fix musl build
2020-07-03 15:27:09 +02:00

32 lines
920 B
Bash

# Template file for 'fdm'
pkgname=fdm
version=2.0
revision=4
build_style=gnu-configure
configure_args="ac_cv_func_strlcpy=no ac_cv_func_strlcat=no --enable-pcre"
hostmakedepends="automake bison"
makedepends="zlib-devel libressl-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=06b28cb6b792570bc61d7e29b13d2af46b92fea77e058b2b17e11e8f7ed0cea4
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-legacy-compat"
fi
post_extract() {
sed -i '$d' Makefile.am
sed -i '$d' Makefile.am
sed -i '$d' Makefile.am
autoreconf -fi
}
post_install() {
vmkdir usr/share/doc/${pkgname}
cp -r examples ${DESTDIR}/usr/share/doc/${pkgname}
sed 17q fdm.c >LICENSE
vlicense LICENSE
}