#Packager: George Vlahavas <gapan~at~salixos~dot~org>

pkgname=moreutils
pkgver=0.67
pkgrel=1gv
source=("moreutils-$pkgver.tar.xz")
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=https://joeyh.name/code/moreutils/

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"moreutils (a collection of unix tools that nobody thought to write)"
"moreutils is a growing collection of the unix tools that nobody"
"thought to write long ago when unix was young."
)


build() {
	cd $startdir/src/$pkgname-$pkgver

	# GNU parallel is standard I guess, so no need for this one
	sed -i "/^BINS/s/parallel//" Makefile
	sed -i "/^MANS/s/parallel.1//" Makefile

	make || return 1
	make install PREFIX=$startdir/pkg/usr
	
	# and this manpage conflicts with the one in the openssl package, so
	# I guess we'll just rename it
	mv $startdir/pkg/usr/share/man/man1/ts.1 $startdir/pkg/usr/share/man/man1/ts-moreutils.1
} 
