Package Details: num-utils 0.5-4

Git Clone URL: (read-only, click to copy)
Package Base: num-utils
Description: Set of programs for dealing with numbers from the command line.
Upstream URL:
Licenses: GPL
Submitter: None
Maintainer: gypaetus
Last Packager: gypaetus
Votes: 10
Popularity: 0.000000
First Submitted: 2007-08-26 14:08
Last Updated: 2018-01-18 03:16

Dependencies (0)

Required by (0)

Sources (1)

Latest Comments

olejorgenb commented on 2013-11-26 14:15

This package no longer works properly. 0 files are installed. Probably due to usage of startdir variable instead pgkdir and srcdir.

Regarding the name collisions I see that debian adds 'num' as a prefix.

# Contributor: Abhishek Dasgupta <>

pkgdesc="Set of programs for dealing with numbers from the command line."
arch=(i686 x86_64)

_cdsrc() {
cd "${srcdir}/${pkgname}-${pkgver}"

_prefix() {
for _file in "$@"; do
mv "$_dir/$_file" "$_dir/num$_file"

build() {
make || return 1

package() {
make TOPDIR="${pkgdir}/usr" install

# Many of the names collide with other packages.
# eg. bsd-games, puzzles, normalize
# Prefix 'num' (same as debian does) as a workaround.
# Ideally we probably should patch the man files and makefile but this
# alot less hazzle
_prefix "${pkgdir}/usr/bin" \
normalize random range average bound interval round
_prefix "${pkgdir}/usr/share/man/man1" \
normalize.1.gz random.1.gz range.1.gz average.1.gz bound.1.gz \
interval.1.gz round.1.gz

Anonymous comment on 2011-11-18 11:15

There are also conflicts with community/bsd-games and community/puzzles, for the files

Adding the following lines to the build function could be a workaround.

mv ${startdir}/pkg/usr/bin/normalize ${startdir}/pkg/usr/bin/num-normalize
mv ${startdir}/pkg/usr/share/man/man1/normalize.1.gz ${startdir}/pkg/usr/share/man/man1/num-normalize.1.gz
mv ${startdir}/pkg/usr/bin/random ${startdir}/pkg/usr/bin/num-random
mv ${startdir}/pkg/usr/share/man/man1/random.1.gz ${startdir}/pkg/usr/share/man/man1/num-random.1.gz
mv ${startdir}/pkg/usr/bin/range ${startdir}/pkg/usr/bin/num-range
mv ${startdir}/pkg/usr/share/man/man1/range.1.gz ${startdir}/pkg/usr/share/man/man1/num-range.1.gz

Another problem: manpage generation depends on pod2man; if it is not available the man pages will be blank, with no evident error at package generation.

Anonymous comment on 2011-10-19 09:49

There's a filename conflict between this package and the completely unrelated "normalize" from [extra].

The problematic filenames are /usr/bin/normalize and /usr/share/man/man1/normalize1.gz, which exist in both packages.

Anonymous comment on 2011-01-23 17:02

greatest utils ever