Browse Source

system/libtrash: Update for 3.7

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/175/head
Isaac Yu 4 years ago
committed by Willy Sudiarto Raharjo
parent
commit
e81a892fe4
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 2
      system/libtrash/README
  2. 18
      system/libtrash/libtrash.SlackBuild
  3. 6
      system/libtrash/libtrash.info

2
system/libtrash/README

@ -3,4 +3,4 @@ trash can under GNU/Linux.
For instance, with libtrash, Midnight Commander will move files
to the trash directory:
LD_PRELOAD=/usr/lib/libtrash.so.3.6 mc
LD_PRELOAD=/usr/lib/libtrash.so.3.7 mc

18
system/libtrash/libtrash.SlackBuild

@ -1,8 +1,8 @@
#!/bin/bash
#!/bin/sh
# Slackware build script for libtrash
#
# Copyright 2020 Isaac Yu <isaacyu1@isaacyu1.com>
# Copyright 2020-2022 Isaac Yu <isaacyu1@isaacyu1.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libtrash
VERSION=${VERSION:-3.6}
VERSION=${VERSION:-3.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -79,20 +79,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Inspired by the following Arch Linux AUR script:
# https://aur.archlinux.org/packages/libtrash/
sed -i -e s/ldconfig// ./src/Makefile
sed -i -e s/python/python2/ ./src/Makefile
./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --disable-static --enable-shared
make
install -d $PKG/usr/lib $PKG/etc
make install INSTLIBDIR=$PKG/usr/lib SYSCONFFILE=$PKG/etc/libtrash.conf
make DESTDIR=$PKG install
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 -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING README.md TODO config.txt $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS BUILD ChangeLog config.txt COPYING INSTALL NEWS README.md TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

6
system/libtrash/libtrash.info

@ -1,8 +1,8 @@
PRGNAM="libtrash"
VERSION="3.6"
VERSION="3.7"
HOMEPAGE="http://pages.stern.nyu.edu/~marriaga/software/libtrash/"
DOWNLOAD="http://pages.stern.nyu.edu/~marriaga/software/libtrash/libtrash-3.6.tgz"
MD5SUM="15cbe6d792e20057b13f46394c7c122a"
DOWNLOAD="http://pages.stern.nyu.edu/~marriaga/software/libtrash/libtrash-3.7.tgz"
MD5SUM="7eeda8187327588ad32bbcb80f33e796"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""

Loading…
Cancel
Save