diff options
author | 2025-05-26 21:51:58 +0700 | |
---|---|---|
committer | 2025-05-26 22:41:18 +0700 | |
commit | d8e4f6eafded3c8ce1703ae3755eae8c574878cc (patch) | |
tree | 4c800171c8187fb728b70238ebf991bece854c80 /misc | |
parent | 18a3037d030f0411718fe486ef4d3cc0118f3c65 (diff) | |
download | slackbuilds-d8e4f6eafded3c8ce1703ae3755eae8c574878cc.tar.gz slackbuilds-d8e4f6eafded3c8ce1703ae3755eae8c574878cc.tar.xz |
misc/bkt: Added (count repeats in input).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/bkt/README | 7 | ||||
-rw-r--r-- | misc/bkt/bkt.SlackBuild | 51 | ||||
-rw-r--r-- | misc/bkt/bkt.info | 10 | ||||
-rw-r--r-- | misc/bkt/slack-desc | 19 |
4 files changed, 87 insertions, 0 deletions
diff --git a/misc/bkt/README b/misc/bkt/README new file mode 100644 index 0000000000..d5ea2740b3 --- /dev/null +++ b/misc/bkt/README @@ -0,0 +1,7 @@ +bkt (count repeats in input) + +bkt reads input from files or standard input, splits it into records, +optionally transforms them according to various options, and counts +like records. After all input is read, a count and percentage is +given for the occurrence of each record. The name 'bkt' comes from the +concept of collecting like items in buckets. diff --git a/misc/bkt/bkt.SlackBuild b/misc/bkt/bkt.SlackBuild new file mode 100644 index 0000000000..0adc4d165d --- /dev/null +++ b/misc/bkt/bkt.SlackBuild @@ -0,0 +1,51 @@ +#!/bin/bash + +# Slackware build script for bkt + +# Written by B. Watson (urchlay@slackware.uk) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=bkt +VERSION=${VERSION:-0.0.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +ARCH=noarch + +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +PKGMAN1=$PKG/usr/man/man1 +PKGINST=$PKG/install + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT $PKGDOC $PKGMAN1 $PKGINST + +install -oroot -groot -m0755 -D $CWD/bkt $PKG/usr/bin/bkt +mkdir -p $PKGMAN1 +pod2man -c SlackBuilds.org \ + --errors=stderr \ + -r "$VERSION" \ + $PKG/usr/bin/bkt | \ + gzip -9 > $PKGMAN1/bkt.1.gz + +for i in $PRGNAM.SlackBuild README; do + cat $CWD/$i > $PKGDOC/$i +done + +cat $CWD/slack-desc > $PKGINST/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/misc/bkt/bkt.info b/misc/bkt/bkt.info new file mode 100644 index 0000000000..8c67eee21b --- /dev/null +++ b/misc/bkt/bkt.info @@ -0,0 +1,10 @@ +PRGNAM="bkt" +VERSION="0.0.1" +HOMEPAGE="https://slackware.uk/~urchlay/repos/misc-scripts/" +DOWNLOAD="https://slackware.uk/~urchlay/repos/misc-scripts/plain/bkt" +MD5SUM="0a1b1adcfbe1c25b3b4a9058fb28cdcf" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" diff --git a/misc/bkt/slack-desc b/misc/bkt/slack-desc new file mode 100644 index 0000000000..4f4f4c6d70 --- /dev/null +++ b/misc/bkt/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +bkt: bkt (count repeats in input) +bkt: +bkt: bkt reads input from files or standard input, splits it into records, +bkt: optionally transforms them according to various options, and counts +bkt: like records. After all input is read, a count and percentage is +bkt: given for the occurrence of each record. The name 'bkt' comes from the +bkt: concept of collecting like items in buckets. +bkt: +bkt: +bkt: +bkt: |