void-packages/srcpkgs/lowdown/template

37 lines
876 B
Bash

# Template file for 'lowdown'
pkgname=lowdown
version=0.4.1
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=a5fb2fa51da9c2dcbd22332e71a8b39fc838b90299e0ac8cdfffd2bc7934fcec
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"
}
}