void-packages/srcpkgs/lowdown/template

37 lines
878 B
Bash

# Template file for 'lowdown'
pkgname=lowdown
version=0.3.2
revision=1
build_style=gnu-makefile
short_desc="Simple markdown translator"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="ISC"
homepage="https://kristaps.bsd.lv/lowdown/"
distfiles="https://kristaps.bsd.lv/lowdown/snapshots/lowdown-${version}.tar.gz"
checksum="740cf6025c43ceaae9bcc1ffc3e94986aa62d65d91ef8173d444a1977c562094"
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"
}
}