diff options
Diffstat (limited to 'system/yeahconsole/yeahconsole.SlackBuild')
-rw-r--r-- | system/yeahconsole/yeahconsole.SlackBuild | 39 |
1 files changed, 27 insertions, 12 deletions
diff --git a/system/yeahconsole/yeahconsole.SlackBuild b/system/yeahconsole/yeahconsole.SlackBuild index b3877c08187e7..40028c8d537ef 100644 --- a/system/yeahconsole/yeahconsole.SlackBuild +++ b/system/yeahconsole/yeahconsole.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for yeahconsole -# Copyright 2009 Pablo Santamaria (pablosantamaria at gmail.com) +# Copyright 2009 Pablo Santamaria (email removed) # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,14 +22,25 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Now maintained by B. Watson <yalhcru@gmail.com> + +# 20170210 bkw: +# - Take over maintenance +# - BUILD=2 +# - i486 => i586 +# - include bugfix patch and man page from debian +# - fix the make command, LIBDIR => LIB_DIRS, should make life easier +# for multilib users. +# - minor cosmetic fixes + PRGNAM=yeahconsole VERSION=${VERSION:-0.3.4} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -40,8 +51,8 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -69,19 +80,23 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# apply patch from debian, fixes a segfault when DISPLAY isn't set. +patch -p1 < $CWD/50-display.patch -make FLAGS="$SLKCFLAGS" LIBDIR="-L/usr/X11R6/lib$LIBDIRSUFFIX" - +make FLAGS="$SLKCFLAGS" LIB_DIRS="-L/usr/lib$LIBDIRSUFFIX" +strip $PRGNAM mkdir -p $PKG/usr/bin make install PREFIX=$PKG/usr -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +# man page borrowed from Debian. its source is debian/yeahconsole.xml from +# http://http.debian.net/debian/pool/main/y/yeahconsole/yeahconsole_0.3.4-3.debian.tar.xz +# I modified it slightly, then generated the man page thus: +# xsltproc --nonet /usr/share/xml/docbook/xsl-stylesheets-1.78.1/manpages/docbook.xsl yeahconsole.xml +mkdir -p $PKG/usr/man/man1 +gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README LICENSE \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README LICENSE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |