void-packages/srcpkgs/scdoc/template

27 lines
675 B
Bash

# Template file for 'scdoc'
pkgname=scdoc
version=1.11.2
revision=1
build_style=gnu-makefile
short_desc="Tool for generating roff manual pages"
maintainer="Julio Galvan <juliogalvan@protonmail.com>"
license="MIT"
homepage="https://git.sr.ht/~sircmpwn/scdoc"
distfiles="https://git.sr.ht/~sircmpwn/scdoc/archive/${version}.tar.gz"
checksum=e9ff9981b5854301789a6778ee64ef1f6d1e5f4829a9dd3e58a9a63eacc2e6f0
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" scdoc"
fi
pre_build() {
if [ "$CROSS_BUILD" ]; then
vsed -e "s|^HOST_SCDOC=.*|HOST_SCDOC=/usr/bin/scdoc|g" -i Makefile
fi
vsed -e "s/\" VERSION \"/ ${version}/g" -i src/main.c
}
post_install() {
vlicense COPYING
}