Updated AUR link and PKGBUILD to match with what is in the AUR
This commit is contained in:
parent
a69197964c
commit
9889ae39ab
2 changed files with 13 additions and 8 deletions
19
PKGBUILD
19
PKGBUILD
|
@ -1,20 +1,25 @@
|
||||||
# Maintainer: Claudio Maggioni <youremail@domain.com>
|
# Maintainer: Claudio Maggioni <maggioniclaudio1999 at gmail dot com>
|
||||||
pkgname=astley-rm
|
pkgname=astleyrm
|
||||||
pkgver=1
|
pkgver=1
|
||||||
pkgrel=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')
|
arch=('any')
|
||||||
url="https://praticamentetilde.github.io/linux/2016/07/28/how-to-rickroll-people-launching-rm-rf-on-your-system.html"
|
url="https://praticamentetilde.github.io/linux/2016/07/28/how-to-rickroll-people-launching-rm-rf-on-your-system.html"
|
||||||
license=('custom:unlicense')
|
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
|
_branch=master
|
||||||
|
|
||||||
source=("$pkgname-$_branch.zip::https://github.com/praticamentetilde/$pkgname/archive/$_branch.zip")
|
source=("$_repo-$_branch.zip::https://github.com/praticamentetilde/$_repo/archive/$_branch.zip")
|
||||||
sha512sums=(SKIP)
|
|
||||||
|
# The AUR PKGBUILD provides this checksum
|
||||||
|
sha512sums=('SKIP')
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "$srcdir"
|
cd "$srcdir/$_repo-$_branch"
|
||||||
echo "Placing /usr/bin/astley-rm script..."
|
echo "Placing /usr/bin/astley-rm script..."
|
||||||
install -D -m755 astley-rm.sh "$pkgdir"/usr/bin/astley-rm
|
install -D -m755 astley-rm.sh "$pkgdir"/usr/bin/astley-rm
|
||||||
echo "Placing /usr/bin/astley-rm-config script..."
|
echo "Placing /usr/bin/astley-rm-config script..."
|
||||||
|
|
|
@ -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.
|
*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
|
### 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:
|
If you are on a different type of system, you need to download or clone this repository, *cd* into it and:
|
||||||
|
|
||||||
|
|
Reference in a new issue