summaryrefslogtreecommitdiffstats
path: root/development/shed
diff options
context:
space:
mode:
author David Woodfall2010-05-12 23:28:55 +0200
committer David Somero2010-05-12 23:28:55 +0200
commitaeedfe447a30ab61217ff3102a9cdc28e36bbeeb (patch)
treea1898771fff582c516fb276f0ee5e2909789c756 /development/shed
parenteb015c75c650230bd8692f7b698cc5ffae730e0a (diff)
downloadslackbuilds-aeedfe447a30ab61217ff3102a9cdc28e36bbeeb.tar.gz
development/shed: Added to 12.2 repository
Diffstat (limited to 'development/shed')
-rw-r--r--development/shed/README4
-rw-r--r--development/shed/shed.SlackBuild100
-rw-r--r--development/shed/shed.info8
-rw-r--r--development/shed/slack-desc20
4 files changed, 132 insertions, 0 deletions
diff --git a/development/shed/README b/development/shed/README
new file mode 100644
index 0000000000..aa73829dc9
--- /dev/null
+++ b/development/shed/README
@@ -0,0 +1,4 @@
+Shed is a hex editor written for unix/linux using ncurses, with a friendly
+pico-style interface. Shows data in ascii, hex, dec, oct and binary,
+and allows editing in all of these bases. Features also include searching
+and dumping.
diff --git a/development/shed/shed.SlackBuild b/development/shed/shed.SlackBuild
new file mode 100644
index 0000000000..fd6a617b76
--- /dev/null
+++ b/development/shed/shed.SlackBuild
@@ -0,0 +1,100 @@
+#!/bin/sh
+
+# Slackware build script for
+
+# Copyright 2009 David Woodfall <dave@unrealize.co.uk>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. FURTHERMORE I AM NOT LIABLE IF
+# YOUR DATA IS DESTROYED, YOUR HOUSE BURNS DOWN OR YOUR DOG RUNS OFF.
+
+PRGNAM=shed
+VERSION=${VERSION:-1.15}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+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"
+fi
+
+set -e # Exit on most errors
+
+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 . \
+ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
+ -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
+ -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 \
+ --build=$ARCH-slackware-linux
+
+make
+make install DESTDIR=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
+ xargs strip --strip-unneeded 2> /dev/null
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ AUTHORS BUGS COPYING INSTALL NEWS README TODO \
+ $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.tgz
+
diff --git a/development/shed/shed.info b/development/shed/shed.info
new file mode 100644
index 0000000000..214db01905
--- /dev/null
+++ b/development/shed/shed.info
@@ -0,0 +1,8 @@
+PRGNAM="shed"
+VERSION="1.15"
+HOMEPAGE="http://sourceforge.net/projects/shed"
+DOWNLOAD="http://downloads.sourceforge.net/sourceforge/shed/shed-1.15.tar.gz"
+MD5SUM="c7d7d464d6b4fa28a7980270d03e0906"
+MAINTAINER="David Woodfall"
+EMAIL="dave@unrealize.co.uk"
+APPROVED="dsomero"
diff --git a/development/shed/slack-desc b/development/shed/slack-desc
new file mode 100644
index 0000000000..20b23bf715
--- /dev/null
+++ b/development/shed/slack-desc
@@ -0,0 +1,20 @@
+# 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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+shed: Shed (simple console hex editor)
+shed:
+shed: Shed is a hex editor written for unix/linux using ncurses, with a
+shed: friendly pico-style interface.
+shed: Shows data in ascii, hex, dec, oct and binary, and allows editing
+shed: in all of these bases.
+shed: Features also include searching and dumping.
+shed:
+shed: Homepage: http://sourceforge.net/projects/shed
+shed:
+shed:
+