mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-26 22:06:35 +01:00
system/hungrycat: Added ('cat' and 'rm' in a single tool).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
034798391b
commit
5852d24b3f
4 changed files with 116 additions and 0 deletions
7
system/hungrycat/README
Normal file
7
system/hungrycat/README
Normal file
|
@ -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.
|
80
system/hungrycat/hungrycat.SlackBuild
Normal file
80
system/hungrycat/hungrycat.SlackBuild
Normal file
|
@ -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}
|
10
system/hungrycat/hungrycat.info
Normal file
10
system/hungrycat/hungrycat.info
Normal file
|
@ -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"
|
19
system/hungrycat/slack-desc
Normal file
19
system/hungrycat/slack-desc
Normal file
|
@ -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:
|
Loading…
Reference in a new issue