26 lines
673 B
Bash
26 lines
673 B
Bash
# Template file for 'scdoc'
|
|
pkgname=scdoc
|
|
version=1.4.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/snapshot/scdoc-${version}.tar.xz"
|
|
checksum=02fde92db6a0a9831baf7c9f9f07fd53b32659c18f8614cb423b7417597a1bc2
|
|
|
|
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
|
|
}
|