summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD17
-rw-r--r--rmtrash.install13
4 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ee2ca9b3fa5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = rmtrash
+ pkgdesc = trash-put made compatible to GNUs rm and rmdir
+ pkgver = 1.12
+ pkgrel = 1
+ url = https://github.com/PhrozenByte/rmtrash
+ install = rmtrash.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = trash-cli
+ source = rmtrash-1.12.tar.gz::https://github.com/PhrozenByte/rmtrash/archive/v1.12.tar.gz
+ sha256sums = 23a39883c2706a105ba291b3eaf0d10119f40aedfd58abe2b302ec2c97280353
+
+pkgname = rmtrash
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..cf9b7698a5a
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar.gz
+*.pkg.tar.xz
+src
+pkg
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..47f8b384463
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,17 @@
+pkgname=rmtrash
+pkgver=1.12
+pkgrel=1
+pkgdesc='trash-put made compatible to GNUs rm and rmdir'
+arch=('i686' 'x86_64')
+url='https://github.com/PhrozenByte/rmtrash'
+license=('GPL')
+depends=('trash-cli')
+install=rmtrash.install
+source=("$pkgname-$pkgver.tar.gz::https://github.com/PhrozenByte/rmtrash/archive/v$pkgver.tar.gz")
+sha256sums=('23a39883c2706a105ba291b3eaf0d10119f40aedfd58abe2b302ec2c97280353')
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ install -D rmtrash "$pkgdir/usr/bin/rmtrash"
+ install -D rmdirtrash "$pkgdir/usr/bin/rmdirtrash"
+}
diff --git a/rmtrash.install b/rmtrash.install
new file mode 100644
index 00000000000..1ae9ac27def
--- /dev/null
+++ b/rmtrash.install
@@ -0,0 +1,13 @@
+post_install() {
+ echo ">> It is very convenient to create the following aliases:"
+ echo ">> alias rm='rmtrash'"
+ echo ">> alias rmdir='rmdirtrash'"
+ echo ">> alias sudo='sudo '"
+}
+
+post_remove() {
+ echo ">> Make sure to delete the following aliases if you created them:"
+ echo ">> alias rm='rmtrash'"
+ echo ">> alias rmdir='rmdirtrash'"
+ echo ">> alias sudo='sudo '"
+}