diff options
Diffstat (limited to 'system')
-rw-r--r-- | system/smenu/README | 8 | ||||
-rw-r--r-- | system/smenu/slack-desc | 19 | ||||
-rw-r--r-- | system/smenu/smenu.SlackBuild | 85 | ||||
-rw-r--r-- | system/smenu/smenu.info | 10 |
4 files changed, 122 insertions, 0 deletions
diff --git a/system/smenu/README b/system/smenu/README new file mode 100644 index 0000000000000..84033e9c463cd --- /dev/null +++ b/system/smenu/README @@ -0,0 +1,8 @@ +smenu (interactive selection filter) + +smenu is a selection filter just like sed is an editing filter. + +This tool reads words from standard input or from a file, and presents +them to the terminal screen in different layouts in a scrolling +window. A cursor, easily moved using the keyboard and/or the mouse, +makes it possible to select one or more words. diff --git a/system/smenu/slack-desc b/system/smenu/slack-desc new file mode 100644 index 0000000000000..e1a0226c9e00f --- /dev/null +++ b/system/smenu/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------------------------------------------------------| +smenu: smenu (interactive selection filter) +smenu: +smenu: smenu is a selection filter just like sed is an editing filter. +smenu: +smenu: This tool reads words from standard input or from a file, and presents +smenu: them to the terminal screen in different layouts in a scrolling +smenu: window. A cursor, easily moved using the keyboard and/or the mouse, +smenu: makes it possible to select one or more words. +smenu: +smenu: +smenu: diff --git a/system/smenu/smenu.SlackBuild b/system/smenu/smenu.SlackBuild new file mode 100644 index 0000000000000..9d83b1160c3fb --- /dev/null +++ b/system/smenu/smenu.SlackBuild @@ -0,0 +1,85 @@ +#!/bin/bash + +# Slackware build script for smenu + +# 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=smenu +VERSION=${VERSION:-1.3.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +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} + +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 /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -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 \ + --disable-static \ + --build=$ARCH-slackware-linux + +make +make install-strip DESTDIR=$PKG +gzip -9 $PKG/usr/man/man*/* + +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKGDOC +cp -a COPYRIGHT ChangeLog FAQ LICENSE README* SUMMARY examples $PKGDOC +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$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 diff --git a/system/smenu/smenu.info b/system/smenu/smenu.info new file mode 100644 index 0000000000000..c771324c90688 --- /dev/null +++ b/system/smenu/smenu.info @@ -0,0 +1,10 @@ +PRGNAM="smenu" +VERSION="1.3.0" +HOMEPAGE="https://github.com/p-gen/smenu/" +DOWNLOAD="https://github.com/p-gen/smenu/archive/v1.3.0/smenu-1.3.0.tar.gz" +MD5SUM="67301a5460e6888d6d3834765fa62c35" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="urchlay@slackware.uk" |