void-packages/srcpkgs/indent/template

25 lines
729 B
Bash

# Template file for 'indent'
pkgname=indent
version=2.2.12
revision=1
build_style=gnu-configure
configure_args="--docdir=/usr/share/doc/indent"
short_desc="Indent can be used to make code easier to read"
maintainer="Enno Boland <gottox@voidlinux.eu>"
homepage="http://www.gnu.org/s/indent/"
license="GPL-3.0-or-later"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=e77d68c0211515459b8812118d606812e300097cfac0b4e9fb3472664263bb8b
pre_configure() {
sed -i 's#^docdir = .*$#docdir = @docdir@#' doc/Makefile.in
}
post_build() {
# manpages are not created properly, so recreate it
unset CC LD AR AS RANLIB CPP CFLAGS CPPFLAGS LDFLAGS
cd man
rm indent.1
make CC=cc LD=cc CFLAGS= LDFLAGS= clean all
}