diff --git a/srcpkgs/num-utils/template b/srcpkgs/num-utils/template new file mode 100644 index 0000000000..bbd2731c28 --- /dev/null +++ b/srcpkgs/num-utils/template @@ -0,0 +1,29 @@ +# Template file for 'num-utils' +pkgname=num-utils +version=0.5 +revision=1 +hostmakedepends="perl" +depends="perl" +short_desc="Programs for dealing with numbers from the Unix command line" +maintainer="Leah Neukirchen " +license="GPL-2" +homepage="http://suso.suso.org/xulu/Num-utils" +distfiles="http://suso.suso.org/programs/${pkgname}/downloads/${pkgname}-${version}.tar.gz" +checksum=03592760fc7844492163b14ddc9bb4e4d6526e17b468b5317b4a702ea7f6c64e +noarch=yes + +post_extract() { + sed -i 's/\$new_number\^\$1/$new_number**$1/g' numprocess +} +do_install() { + for f in average bound interval normalize random range round; do + vbin $f num$f + pod2man $f > $f.1 + vman $f.1 num$f.1 + done + for f in numgrep numprocess numsum; do + vbin $f + pod2man $f > $f.1 + vman $f.1 + done +}