mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
development/tweak: Added (ncurses-based hex editor).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
18042e8701
commit
8a89006a6e
4 changed files with 119 additions and 0 deletions
25
development/tweak/README
Normal file
25
development/tweak/README
Normal file
|
@ -0,0 +1,25 @@
|
|||
tweak (ncurses-based hex editor)
|
||||
|
||||
Tweak is a hex editor. It allows you to edit a file at very low level,
|
||||
letting you see the full and exact binary contents of the file. It can be
|
||||
useful for modifying binary files such as executables, editing disk or CD
|
||||
images, debugging programs that generate binary file formats incorrectly,
|
||||
and many other things.
|
||||
|
||||
Tweak uses a complex data structure based on B-trees, designed to make
|
||||
almost all editing operations extremely fast, even when they are working
|
||||
on huge amounts of data.
|
||||
|
||||
Tweak supports insert mode (not particularly useful if you're editing
|
||||
an executable file or a filesystem image, but can be extremely handy in
|
||||
other file formats such as PNG).
|
||||
|
||||
Cutting, copying and pasting within the file you are editing is extremely
|
||||
efficient. No matter how big the chunk of data you are moving around -
|
||||
even if it's a 200Mb section of a CD image - Tweak will always perform
|
||||
the operation effectively instantly.
|
||||
|
||||
Tweak supports lazy loading of the input file: rather than sucking it
|
||||
all into memory straight away, it simply remembers which parts of the
|
||||
editing buffer are copies of which parts of the input file and refers to
|
||||
the file on disk when it needs to.
|
19
development/tweak/slack-desc
Normal file
19
development/tweak/slack-desc
Normal file
|
@ -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------------------------------------------------------|
|
||||
tweak: tweak (ncurses-based hex editor)
|
||||
tweak:
|
||||
tweak: Tweak is a hex editor. It allows you to edit a file at very low
|
||||
tweak: level, letting you see the full and exact binary contents of the
|
||||
tweak: file. It can be useful for modifying binary files such as executables,
|
||||
tweak: editing disk or CD images, debugging programs that generate binary
|
||||
tweak: file formats incorrectly, and many other things.
|
||||
tweak:
|
||||
tweak: Tweak uses a complex data structure based on B-trees, designed to
|
||||
tweak: make almost all editing operations extremely fast, even when they
|
||||
tweak: are working on huge amounts of data.
|
65
development/tweak/tweak.SlackBuild
Normal file
65
development/tweak/tweak.SlackBuild
Normal file
|
@ -0,0 +1,65 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for tweak
|
||||
|
||||
# Written by B. Watson (yalhcru@gmail.com)
|
||||
|
||||
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
|
||||
|
||||
PRGNAM=tweak
|
||||
VERSION=${VERSION:-3.02}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i586 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
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 .
|
||||
chmod 644 *
|
||||
|
||||
make XFLAGS="$SLKCFLAGS"
|
||||
install -D -s -m0755 $PRGNAM $PKG/usr/bin/$PRGNAM
|
||||
mkdir -p $PKG/usr/man/man1
|
||||
gzip -9c $PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a *.html LICENCE $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}
|
10
development/tweak/tweak.info
Normal file
10
development/tweak/tweak.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="tweak"
|
||||
VERSION="3.02"
|
||||
HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/tweak/"
|
||||
DOWNLOAD="https://www.chiark.greenend.org.uk/~sgtatham/tweak/tweak-3.02.tar.gz"
|
||||
MD5SUM="d50e20d9ed05d7cc5eb04ff3f0bf1d9b"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="B. Watson"
|
||||
EMAIL="yalhcru@gmail.com"
|
Loading…
Reference in a new issue