diff options
author | klaatu <klaatu@member.fsf.org> | 2010-09-18 12:03:45 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-09-21 22:09:39 -0500 |
commit | 61351c4222732de8c4965eef633c6ff3e8c75c51 (patch) | |
tree | 85e5cf4393ea6950929dc74706a80ffb968f05f6 /graphics/yesplz/yesplz.SlackBuild | |
parent | da9186e9a5b1c2c698a02fbed291f641279c38d0 (diff) | |
download | slackbuilds-61351c4222732de8c4965eef633c6ff3e8c75c51.tar.gz |
graphics/yesplz: Added (screenshot and upload tool)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'graphics/yesplz/yesplz.SlackBuild')
-rw-r--r-- | graphics/yesplz/yesplz.SlackBuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/graphics/yesplz/yesplz.SlackBuild b/graphics/yesplz/yesplz.SlackBuild new file mode 100644 index 0000000000..8ac6e41ebe --- /dev/null +++ b/graphics/yesplz/yesplz.SlackBuild @@ -0,0 +1,76 @@ +#!/bin/sh + +# Slackware build script for sigFLUP's yesplz +# +# this SlackBuild maintained by Klaatu at member.fsf.org +# +# but hey lets face it, rworkman and the slackbuilds posse are +# the people who really make this stuff happen + +PRGNAM=yesplz +VERSION=aug_4_2010 +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -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="-02" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM\_$VERSION +tar xvf $CWD/$PRGNAM\_$VERSION.tgz +cd $PRGNAM\_$VERSION +chown -R root:root . +chmod -R a-s,u+w,g-w+r,o-w+r . + +CFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --sysconfdir=/etc \ + --program-prefix="" \ + --build=$ARCH-slackware-linux + +## make install is broken and installs the file to the build system. +make yesplz + +install -D -m0755 -s $PRGNAM $PKG/usr/bin/$PRGNAM + +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} |