void-packages/srcpkgs/lowdown/template

37 lines
877 B
Bash

# Template file for 'lowdown'
pkgname=lowdown
version=0.4.2
revision=1
build_style=gnu-makefile
short_desc="Simple markdown translator"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="ISC"
homepage="https://kristaps.bsd.lv/lowdown/"
distfiles="https://kristaps.bsd.lv/lowdown/snapshots/lowdown-${version}.tar.gz"
checksum=2a9d318a4f0898dd6cb65a46ad5cdf23d85660fcbbcebe19aa4828a4ca2f5c04
do_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
./configure PREFIX=/usr MANDIR=/usr/share/man
}
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"
}
}