void-packages/srcpkgs/moreutils/template

28 lines
986 B
Bash

# Template file for 'moreutils'
pkgname=moreutils
version=0.64
revision=1
build_style=gnu-makefile
make_build_args="DOCBOOK2XMAN=docbook2man"
hostmakedepends="docbook2x"
depends="perl perl-IPC-Run perl-TimeDate perl-Time-Duration"
short_desc="Unix tools that nobody thought to write, when Unix was young"
maintainer="lemmi <lemmi@nerd2nerd.org>"
license="GPL-2.0-only, BSD-2-Clause"
homepage="https://joeyh.name/code/moreutils/"
distfiles="https://git.joeyh.name/index.cgi/moreutils.git/snapshot/moreutils-${version}.tar.gz"
checksum=fed203542c5c2b55c3a41d21bca5bc627ec1f6d7313ed2f758c69798d65770ec
post_install() {
# rename parallel to not conflict with gnu-parllel
# rename ts: https://github.com/voidlinux/void-packages/issues/4282
for conflict in parallel ts; do
mv ${DESTDIR}/usr/bin/{,moreutils_}${conflict}
mv ${DESTDIR}/usr/share/man/man1/{,moreutils_}${conflict}.1
done
sed -n '/Copyright/,/DAMAGE/p' is_utf8/is_utf8.c > LICENSE-is-utf8
vlicense LICENSE-is-utf8
}