void-packages/srcpkgs/moreutils/template

25 lines
865 B
Bash

# Template file for 'moreutils'
pkgname=moreutils
version=0.62
revision=2
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"
homepage="https://joeyh.name/code/moreutils/"
distfiles="http://http.debian.net/debian/pool/main/m/moreutils/moreutils_0.62.orig.tar.xz"
checksum=ffd0bfb2e490db63355e1a7d168c6f3f9802ee2c5e80880ca632e603b4b67d88
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
}