diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-02-14 12:31:00 -0800 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-16 09:11:57 +0700 |
commit | e81a892fe412ae323aad0a74c9c51161c6062ef0 (patch) | |
tree | c986e4b41c8f59b2c4ff427f7a5251702afd0230 /system | |
parent | b3f427721e92566943d110130d637ad0949c775d (diff) |
system/libtrash: Update for 3.7
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r-- | system/libtrash/README | 2 | ||||
-rw-r--r-- | system/libtrash/libtrash.SlackBuild | 18 | ||||
-rw-r--r-- | system/libtrash/libtrash.info | 6 |
3 files changed, 11 insertions, 15 deletions
diff --git a/system/libtrash/README b/system/libtrash/README index 6de79c168a9b7..af2ac4528f0ed 100644 --- a/system/libtrash/README +++ b/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 diff --git a/system/libtrash/libtrash.SlackBuild b/system/libtrash/libtrash.SlackBuild index e7819257546a7..e73344ab6b482 100644 --- a/system/libtrash/libtrash.SlackBuild +++ b/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 diff --git a/system/libtrash/libtrash.info b/system/libtrash/libtrash.info index 706271dcea309..8f3e3aa214cb8 100644 --- a/system/libtrash/libtrash.info +++ b/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="" |