Commit 3e835f65 authored by klaatu's avatar klaatu

install.readme and .spec file

parent e116660f
There are several ways to install trashy:
On just about any POSIX system, run the install script included with
the trashy source code.
$ sudo ./
If that fails, the really simple and dirty method is to copy the
trashy script into your PATH, such as ~/bin or /usr/local/bin, or
whatever you have available to you.
On Slackware Linux, run the SlackBuild script included with the trashy
source code.
$ su -
# ./trashy.SlackBuild
If you use a distribution that uses RPMs, a package may be available
Manual RPM
If not, build an RPM from the trashy.spec file included with the
trashy source code. First, install the toolchain:
# dnf install rpmdevtools
Set up the RPM environment:
$ pmdev-setuptree
Copy the SPEC file into your tree:
$ cp path/to/trashy.spec ~/rpmbuild/SPECS
Place the source into your tree:
$ cp path/to/trashy-source.tar.bz2 ~/rpmbuild/SOURCES
$ rpmbuild -ba ~/rpmbuild/SPECS/trashy.spec
$ sudo dnf install ~/rpmbuild/RPMS/noarch/trash*rpm
If you need help, don't hesitate to contact Klaatu at
or in (message 'notklaatu').
Name: trashy
Version: 2.0
Release: 2%{?dist}
Summary: A sane rm intermediary for the POSIX shell
License: GPLv3+
Requires: (bash or tcsh or zsh)
BuildArch: noarch
Trashy is a shell script providing a (mostly compliant) trash bin within your POSIX shell. It lets you send unwanted files and folders to you freedesktop Trash (or a .trash folder, if you do not use a desktop) instead of using the rm command. If you change your mind, you can restore trashed files. When you are sure you want to remove the files from your system forever, you can empty your trash.
%setup -q
gzip %{name}.8
gzip %{name}.info
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}
mkdir -p %{buildroot}/%{_infodir}
install -m 0755 %{name} %{buildroot}/%{_bindir}/%{name}
install -m 0755 %{name}.8.gz %{buildroot}/%{_mandir}/%{name}.8.gz
install -m 0644 %{name}.info.gz %{buildroot}/%{_infodir}/%{name}.info.gz
%license LICENSE
/usr/bin/ln -f -s /usr/bin/trashy /usr/bin/trash
[ -L /usr/bin/trash ] && rm /usr/bin/trash
* Mon Jan 30 2017 Klaatu <> - 2.0-2
- URL correction
- post create symlink
- postun remove symlink
* Wed Dec 21 2016 Klaatu <> - 2.0-1
- Initial RPM build
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment