void-packages/srcpkgs/lowdown/template

38 lines
931 B
Bash

# Template file for 'lowdown'
pkgname=lowdown
version=0.3.1
revision=2
wrksrc="${pkgname}-VERSION_${version//./_}"
configure_args="PREFIX=/usr MANDIR=/usr/share/man"
build_style=configure
short_desc="Simple markdown translator"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="ISC"
homepage="https://kristaps.bsd.lv/lowdown/"
distfiles="https://github.com/kristapsdz/lowdown/archive/VERSION_${version//./_}.tar.gz"
checksum=af1fe2904dd543e46ff2b19ccd601df053986f3913d5abf68ac9c62da50754ec
pre_configure() {
local _libc=glibc
case "$XBPS_TARGET_MACHINE" in
*-musl) _libc=musl ;;
esac
if [ -n "$CROSS_BUILD" ]; then
cp "${FILESDIR}/configure.$_libc" configure.local
fi
}
post_install() {
vlicense LICENSE.md
}
lowdown-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/share/man/man3/*.3"
}
}