27 lines
824 B
Bash
27 lines
824 B
Bash
# Template file for 'indent'
|
|
pkgname=indent
|
|
version=2.2.13
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--docdir=/usr/share/doc/indent"
|
|
hostmakedepends="texinfo"
|
|
short_desc="Indent can be used to make code easier to read"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://www.gnu.org/software/indent/"
|
|
changelog="https://git.savannah.gnu.org/cgit/indent.git/plain/NEWS"
|
|
distfiles="${GNU_SITE}/indent/indent-${version}.tar.gz"
|
|
checksum=9e64634fc4ce6797b204bcb8897ce14fdd0ab48ca57696f78767c59cae578095
|
|
|
|
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
|
|
}
|