diff --git a/games/fortune-noobfarm/README b/games/fortune-noobfarm/README new file mode 100644 index 0000000000..29b1013b69 --- /dev/null +++ b/games/fortune-noobfarm/README @@ -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. diff --git a/games/fortune-noobfarm/fortune-noobfarm.SlackBuild b/games/fortune-noobfarm/fortune-noobfarm.SlackBuild new file mode 100644 index 0000000000..293e14b5aa --- /dev/null +++ b/games/fortune-noobfarm/fortune-noobfarm.SlackBuild @@ -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} diff --git a/games/fortune-noobfarm/fortune-noobfarm.info b/games/fortune-noobfarm/fortune-noobfarm.info new file mode 100644 index 0000000000..36d9d16064 --- /dev/null +++ b/games/fortune-noobfarm/fortune-noobfarm.info @@ -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" diff --git a/games/fortune-noobfarm/slack-desc b/games/fortune-noobfarm/slack-desc new file mode 100644 index 0000000000..fa40fdbba3 --- /dev/null +++ b/games/fortune-noobfarm/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------------------------------------------------------| +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: