mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
system/dtrx: Added (Intelligent archive extraction)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
ded40d930b
commit
d7894f52fc
4 changed files with 87 additions and 0 deletions
12
system/dtrx/README
Normal file
12
system/dtrx/README
Normal file
|
@ -0,0 +1,12 @@
|
|||
dtrx extracts archives in a number of different
|
||||
formats; it currently supports tar, zip (including self-extracting
|
||||
.exe files), cpio, rpm, deb, gem, 7z, cab, rar, and InstallShield
|
||||
files. It can also decompress files compressed with gzip, bzip2,
|
||||
lzma, xz, or compress.
|
||||
|
||||
In addition to providing one command to handle many different archive
|
||||
types, dtrx also aids the user by extracting contents consistently.
|
||||
By default, everything will be written to a dedicated directory
|
||||
that's named after the archive. dtrx will also change the
|
||||
permissions to ensure that the owner can read and write all those
|
||||
files.
|
46
system/dtrx/dtrx.SlackBuild
Normal file
46
system/dtrx/dtrx.SlackBuild
Normal file
|
@ -0,0 +1,46 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for dtrx
|
||||
|
||||
# Petr Kletecka petr@kle.cz <2013>
|
||||
|
||||
PRGNAM=dtrx
|
||||
VERSION=${VERSION:-7.1}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
ARCH=noarch
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
set -e
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xf $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 {} \;
|
||||
|
||||
python setup.py install --prefix $PKG
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
NEWS 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}
|
10
system/dtrx/dtrx.info
Normal file
10
system/dtrx/dtrx.info
Normal file
|
@ -0,0 +1,10 @@
|
|||
PRGNAM="dtrx"
|
||||
VERSION="7.1"
|
||||
HOMEPAGE="http://brettcsmith.org/2007/dtrx/"
|
||||
DOWNLOAD="http://brettcsmith.org/2007/dtrx/dtrx-7.1.tar.gz"
|
||||
MD5SUM="4be207724b75aea3e9f93374298b2174"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
MAINTAINER="Petr Kletecka"
|
||||
EMAIL="petr@kle.cz"
|
19
system/dtrx/slack-desc
Normal file
19
system/dtrx/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------------------------------------------------------|
|
||||
dtrx: dtrx (Intelligent archive extraction)
|
||||
dtrx:
|
||||
dtrx: dtrx extracts archives in a number of different formats.
|
||||
dtrx: In addition to providing one command to handle many different archive
|
||||
dtrx: types, dtrx also aids the user by extracting contents consistently.
|
||||
dtrx: By default, everything will be written to a dedicated directory
|
||||
dtrx: that's named after the archive. dtrx will also change the
|
||||
dtrx: permissions to ensure that the owner can read and write all those
|
||||
dtrx: files.
|
||||
dtrx:
|
||||
dtrx: website: http://brettcsmith.org/2007/dtrx/
|
Loading…
Reference in a new issue