28 lines
705 B
Bash
28 lines
705 B
Bash
# Template file for 'scdoc'
|
|
pkgname=scdoc
|
|
version=1.10.1
|
|
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=80e021c732cca2cd6659dccf3306d46f59eecbf8fbaa4dabdb502f537278a78f
|
|
|
|
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
|
|
}
|