void-packages/srcpkgs/scdoc/template

27 lines
666 B
Bash

# Template file for 'scdoc'
pkgname=scdoc
version=1.5.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=86591de3741bea5443e7fbc11ff9dc22da90621105b06be524422efd5dec3a29
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" scdoc"
fi
pre_build() {
if [ "$CROSS_BUILD" ]; then
sed -i "s|^HOST_SCDOC=.*|HOST_SCDOC=/usr/bin/scdoc|g" Makefile
fi
sed -i "s/\" VERSION \"/ ${version}/g" src/main.c
}
post_install() {
vlicense COPYING
}