void-packages/srcpkgs/scdoc/template
2019-03-02 16:18:05 -03:00

26 lines
674 B
Bash

# Template file for 'scdoc'
pkgname=scdoc
version=1.9.3
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=c68d110fd4e2d9854bbf2377fae8c21e66ee027ce750821213efa820c81869ab
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
}