diff options
author | Isaac Yu <isaacyu1@isaacyu1.com> | 2022-04-19 15:16:46 -0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-24 01:47:20 +0700 |
commit | 5a97d9bbec5216079f2632de4d28166008e8914f (patch) | |
tree | caee62addd16e2a93b7edca006e6a41702b8bedc /system/trash-cli/trash-cli.SlackBuild | |
parent | f37e944fa8def9a2209117cd7c22ee43ce76174c (diff) |
system/trash-cli: Update for 0.22.4.16 (+new maintainer)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/trash-cli/trash-cli.SlackBuild')
-rw-r--r-- | system/trash-cli/trash-cli.SlackBuild | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/system/trash-cli/trash-cli.SlackBuild b/system/trash-cli/trash-cli.SlackBuild index 28433640d160..bfe3db8a41ab 100644 --- a/system/trash-cli/trash-cli.SlackBuild +++ b/system/trash-cli/trash-cli.SlackBuild @@ -4,6 +4,7 @@ # # Copyright 2010 Pierre Cazenave <pwcazenave {at} gmail [dot] com> # Copyright 2017 Donald Cooley South Haven, IN USA +# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -27,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=trash-cli -VERSION=${VERSION:-0.17.1.14} +VERSION=${VERSION:-0.22.4.16} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -81,15 +82,14 @@ 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 {} \; -python setup.py install --root=$PKG +# Fix man path +sed 's|share/man/|man/|' -i setup.py + +python3 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 -mv $PKG/usr/share/man/ $PKG/usr/ -rmdir $PKG/usr/share - 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 |