2018-06-22 00:02:10 +00:00
|
|
|
# Template file for 'scdoc'
|
|
|
|
pkgname=scdoc
|
2018-07-20 17:06:57 +00:00
|
|
|
version=1.4.1
|
2018-06-22 00:02:10 +00:00
|
|
|
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/snapshot/scdoc-${version}.tar.xz"
|
2018-07-20 17:06:57 +00:00
|
|
|
checksum=2bc96daae0ddfb858305e550eb00a544a7a6255edd0bd169dcb2fc0c035eca92
|
2018-06-22 00:02:10 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|