From 9889ae39abdeaec294e74773223ed6838cd60636 Mon Sep 17 00:00:00 2001 From: praticamentetilde Date: Sat, 6 Aug 2016 19:01:07 +0200 Subject: [PATCH] Updated AUR link and PKGBUILD to match with what is in the AUR --- PKGBUILD | 19 ++++++++++++------- README.md | 2 +- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 4b64491..03da805 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,20 +1,25 @@ -# Maintainer: Claudio Maggioni -pkgname=astley-rm +# Maintainer: Claudio Maggioni +pkgname=astleyrm pkgver=1 pkgrel=1 -pkgdesc="Prevent 'rm -rf' playing Never Gonna Give You Up" +pkgdesc="Rickroll whoever tries to desert (rm -rf) your *NIX system, even root." arch=('any') url="https://praticamentetilde.github.io/linux/2016/07/28/how-to-rickroll-people-launching-rm-rf-on-your-system.html" license=('custom:unlicense') -makedepends=('git' 'youtube-dl') +depends=('coreutils') +makedepends=('git') +optdepends=('xdg-utils: to open with xdg-open links in rickroll()') +_repo=astley-rm _branch=master -source=("$pkgname-$_branch.zip::https://github.com/praticamentetilde/$pkgname/archive/$_branch.zip") -sha512sums=(SKIP) +source=("$_repo-$_branch.zip::https://github.com/praticamentetilde/$_repo/archive/$_branch.zip") + +# The AUR PKGBUILD provides this checksum +sha512sums=('SKIP') package() { - cd "$srcdir" + cd "$srcdir/$_repo-$_branch" echo "Placing /usr/bin/astley-rm script..." install -D -m755 astley-rm.sh "$pkgdir"/usr/bin/astley-rm echo "Placing /usr/bin/astley-rm-config script..." diff --git a/README.md b/README.md index c67cb06..cfe3179 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ alias sudo='sudo ' *astley-rm.sh* then checks if the *rm* call is "malicious", namely if the *recursive* and the *force* options are used at the same time. If that happens, the *rickroll()* function in the script is called, causing http://youtu.be/dQw4w9WgXcQ to be opened in the default browser. You can always edit the function to achieve a different behaviour. ### Installation -If you are using Arch Linux based distro, here is the [link](https://aur.archlinux.org/packages/astley-rm) to the AUR package. However, the PKGBUILD is also in this repository. +If you are using Arch Linux based distro, here is the [link](https://aur.archlinux.org/packages/astleyrm/) to the AUR package. However, the PKGBUILD is also in this repository. If you are on a different type of system, you need to download or clone this repository, *cd* into it and: