vp-build/srcpkgs/moreutils/template

29 lines
1000 B
Bash

# Template file for 'moreutils'
pkgname=moreutils
version=0.67
revision=1
build_style=gnu-makefile
make_build_args="DOCBOOKXSL=/usr/share/xsl/docbook/"
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=03872f42c22943b21c62f711b693c422a4b8df9d1b8b2872ef9a34bd5d13ad10
post_install() {
# rename parallel to not conflict with gnu-parallel
# rename ts to not conflict with ts
for conflict in parallel ts; do
mv ${DESTDIR}/usr/bin/{,moreutils_}${conflict}
mv ${DESTDIR}/usr/share/man/man1/{,moreutils_}${conflict}.1
done
vdoc ${FILESDIR}/README.voidlinux
sed -n '/Copyright/,/DAMAGE/p' is_utf8/is_utf8.c > LICENSE-is-utf8
vlicense LICENSE-is-utf8
}