void-packages/srcpkgs/scdoc/template
2019-08-10 20:51:26 +02:00

27 lines
704 B
Bash

# Template file for 'scdoc'
pkgname=scdoc
version=1.9.6
revision=1
build_style=gnu-makefile
make_build_args="PREFIX=/usr"
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=89a5f2294b4b72ee1d20b8a478d16bee1f96b6202bfeedb6df76c27881ed5928
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
}