From d7483b882423a0decdd95bb98af497de4768ace7 Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 9 Feb 2018 20:53:26 +0100 Subject: [PATCH] New package: num-utils-0.5 --- srcpkgs/num-utils/template | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 srcpkgs/num-utils/template diff --git a/srcpkgs/num-utils/template b/srcpkgs/num-utils/template new file mode 100644 index 00000000000..bbd2731c280 --- /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 +}