28 lines
735 B
Bash
28 lines
735 B
Bash
# Template file for 'scdoc'
|
|
pkgname=scdoc
|
|
version=1.6.0
|
|
revision=2
|
|
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=a396bc070c8734d7cafe3a3481c8cffacd83b3effdeb28de43e2cdac889643b1
|
|
|
|
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
|
|
# 1.6.0 use glibc extensions to parse that
|
|
unset SOURCE_DATE_EPOCH
|
|
}
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|