games/fortune-noobfarm: Added (fortunes from noobfarm.org).

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2020-11-07 09:25:48 +07:00 committed by Willy Sudiarto Raharjo
parent 1f11028072
commit 6aa92e8d44
4 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,13 @@
fortune-noobfarm (fortunes from noobfarm.org)
This is a fortune(6) file of quotes from https://noobfarm.org,
distributed with permission from the site owner. Also included is
a file of quotes that got lost in the transition from the previous
incarnation of noobfarm.org.
To see a noobfarm fortune after installing the package, run:
fortune noobfarm noobfarm.removed
To add them to the set of login fortunes, edit
/etc/profile.d/bsd-games-login-fortune.sh and add "noobfarm
noobfarm.removed" on the line with the fortune command.

View file

@ -0,0 +1,44 @@
#!/bin/sh
# Slackware build script for fortune-noobfarm
# Written by B. Watson (yalhcru@gmail.com)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=fortune-noobfarm
VERSION=${VERSION:-20201030}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
ARCH=noarch
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
SRCNAM=noobfarm
set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
\! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
make install DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README $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}

View file

@ -0,0 +1,10 @@
PRGNAM="fortune-noobfarm"
VERSION="20201030"
HOMEPAGE="https://noobfarm.org"
DOWNLOAD="https://slackware.uk/~urchlay/src/noobfarm-20201030.tar.xz"
MD5SUM="d85d08cb3defaf4b397d4b617e04b0e4"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="B. Watson"
EMAIL="yalhcru@gmail.com"

View 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------------------------------------------------------|
fortune-noobfarm: fortune-noobfarm (fortunes from noobfarm.org)
fortune-noobfarm:
fortune-noobfarm: This is a fortune(6) file of quotes from https://noobfarm.org,
fortune-noobfarm: distributed with permission from the site owner. Also included is
fortune-noobfarm: a file of quotes that got lost in the transition from the previous
fortune-noobfarm: incarnation of noobfarm.org.
fortune-noobfarm:
fortune-noobfarm:
fortune-noobfarm:
fortune-noobfarm:
fortune-noobfarm: