mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
system/trash-cli: Updated for version 0.17.1.14.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
388723a7c0
commit
1da64aa476
3 changed files with 28 additions and 14 deletions
|
@ -1 +1,11 @@
|
||||||
trash-cli is a command line interface to the FreeDesktop.org trashcan.
|
trash-cli trashes files recording the original path, deletion date, and
|
||||||
|
permissions. It uses the same trashcan used by KDE, GNOME, and XFCE, but
|
||||||
|
you can invoke it from the command line (and scripts).
|
||||||
|
|
||||||
|
It provides these commands:
|
||||||
|
|
||||||
|
trash-put : trashes files and directories.
|
||||||
|
trash-empty : empty the trashcan(s).
|
||||||
|
trash-list : list trashed files.
|
||||||
|
trash-restore : restore a trashed file.
|
||||||
|
trash-rm : remove individual files from trash can.
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
# Slackware build script for the trash-cli utils.
|
# Slackware build script for the trash-cli utils.
|
||||||
#
|
#
|
||||||
# Copyright 2010 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
|
# Copyright 2010 Pierre Cazenave <pwcazenave {at} gmail [dot] com>
|
||||||
|
# Copyright 2017 Donald Cooley South Haven, IN USA
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -22,16 +23,15 @@
|
||||||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
# Updated and reworked by Donald Cooley <dfc@warpmail.net>
|
|
||||||
|
|
||||||
PRGNAM=trash-cli
|
PRGNAM=trash-cli
|
||||||
VERSION=${VERSION:-0.12.9.14}
|
VERSION=${VERSION:-0.17.1.14}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i586 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
|
@ -42,8 +42,8 @@ TMP=${TMP:-/tmp/SBo}
|
||||||
PKG=$TMP/package-$PRGNAM
|
PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
@ -61,8 +61,8 @@ set -e
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$SRCVER
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
find -L . \
|
||||||
|
@ -73,6 +73,9 @@ find -L . \
|
||||||
|
|
||||||
python setup.py install --root=$PKG
|
python setup.py install --root=$PKG
|
||||||
|
|
||||||
|
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
mkdir $PKG/usr/man
|
mkdir $PKG/usr/man
|
||||||
mv $PKG/usr/share/man/ $PKG/usr/
|
mv $PKG/usr/share/man/ $PKG/usr/
|
||||||
rmdir $PKG/usr/share
|
rmdir $PKG/usr/share
|
||||||
|
@ -81,10 +84,11 @@ find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a COPYING CREDITS.txt DONE.txt HISTORY.txt MANIFEST.in README.rst TODO.txt bugs.txt requirements-dev.txt \
|
cp -a \
|
||||||
|
COPYING CREDITS.txt DONE.txt HISTORY.txt README.rst TODO.txt \
|
||||||
|
bugs.txt requirements-dev.txt docs \
|
||||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README$TAG
|
|
||||||
|
|
||||||
mkdir -p $PKG/install
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
PRGNAM="trash-cli"
|
PRGNAM="trash-cli"
|
||||||
VERSION="0.12.9.14"
|
VERSION="0.17.1.14"
|
||||||
HOMEPAGE="https://github.com/andreafrancia/trash-cli"
|
HOMEPAGE="https://github.com/andreafrancia/trash-cli"
|
||||||
DOWNLOAD="https://github.com/andreafrancia/trash-cli/archive/0.12.9.14.tar.gz"
|
DOWNLOAD="https://github.com/andreafrancia/trash-cli/archive/0.17.1.14/trash-cli-0.17.1.14.tar.gz"
|
||||||
MD5SUM="53d6b696b7241b89216d520db7aa4c54"
|
MD5SUM="75ccadb291fdef88cd7175d609fc6409"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
MAINTAINER="Donald Cooley"
|
MAINTAINER="Donald Cooley"
|
||||||
EMAIL="dfc@warpmail.net"
|
EMAIL="chytraeu@sdf.org"
|
||||||
|
|
Loading…
Reference in a new issue