diff options
author | B. Watson <yalhcru@gmail.com> | 2017-03-29 23:31:41 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-01 06:57:05 +0700 |
commit | 5852d24b3f52141f91f9f02cb8bc251d1ea794f9 (patch) | |
tree | 575d7890f934856949a9b36593e7f3533345e16f | |
parent | 034798391ba47550f5b4eb5ccde185c4cb923346 (diff) |
system/hungrycat: Added ('cat' and 'rm' in a single tool).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
-rw-r--r-- | system/hungrycat/README | 7 | ||||
-rw-r--r-- | system/hungrycat/hungrycat.SlackBuild | 80 | ||||
-rw-r--r-- | system/hungrycat/hungrycat.info | 10 | ||||
-rw-r--r-- | system/hungrycat/slack-desc | 19 |
4 files changed, 116 insertions, 0 deletions
diff --git a/system/hungrycat/README b/system/hungrycat/README new file mode 100644 index 0000000000000..15b01421d4a56 --- /dev/null +++ b/system/hungrycat/README @@ -0,0 +1,7 @@ +hungrycat ('cat' and 'rm' in a single tool) + +hungrycat is a tool that prints contents of a file on the standard output, +while simultaneously freeing disk space occupied by the file. It can be +useful if you need to process a large file, but you don't have enough +space to store the output file and you wouldn't need the input file +afterwards. diff --git a/system/hungrycat/hungrycat.SlackBuild b/system/hungrycat/hungrycat.SlackBuild new file mode 100644 index 0000000000000..1083fc3fcdb9c --- /dev/null +++ b/system/hungrycat/hungrycat.SlackBuild @@ -0,0 +1,80 @@ +#!/bin/sh + +# Slackware build script for hungrycat + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +PRGNAM=hungrycat +VERSION=${VERSION:-0.3.3} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --mandir=/usr/man \ + --docdir=/usr/doc/$PRGNAM-$VERSION \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG +strip $PKG/usr/bin/$PRGNAM +gzip -9 $PKG/usr/man/man1/$PRGNAM.1 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a doc/README doc/changelog $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/system/hungrycat/hungrycat.info b/system/hungrycat/hungrycat.info new file mode 100644 index 0000000000000..4fbcaecbd5970 --- /dev/null +++ b/system/hungrycat/hungrycat.info @@ -0,0 +1,10 @@ +PRGNAM="hungrycat" +VERSION="0.3.3" +HOMEPAGE="http://jwilk.net/software/hungrycat" +DOWNLOAD="https://github.com/jwilk/hungrycat/releases/download/0.3.3/hungrycat-0.3.3.tar.gz" +MD5SUM="e24d5905729569af4e7c94f4ce566370" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="docutils" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/system/hungrycat/slack-desc b/system/hungrycat/slack-desc new file mode 100644 index 0000000000000..7de4019ac3383 --- /dev/null +++ b/system/hungrycat/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------------------------------------------------------| +hungrycat: hungrycat ('cat' and 'rm' in a single tool) +hungrycat: +hungrycat: hungrycat is a tool that prints contents of a file on the standard +hungrycat: output, while simultaneously freeing disk space occupied by the +hungrycat: file. It can be useful if you need to process a large file, but you +hungrycat: don't have enough space to store the output file and you wouldn't +hungrycat: need the input file afterwards. +hungrycat: +hungrycat: +hungrycat: +hungrycat: |