This repository has been archived on 2021-01-15. You can view files and clone it, but cannot push or open issues or pull requests.
astley-rm/PKGBUILD

26 lines
864 B
Bash
Raw Normal View History

2016-08-06 15:36:23 +00:00
# Maintainer: Claudio Maggioni <youremail@domain.com>
pkgname=astley-rm
pkgver=1
pkgrel=1
pkgdesc="Prevent 'rm -rf' playing Never Gonna Give You Up"
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')
_branch=master
2016-08-06 16:06:47 +00:00
source=("$pkgname-$_branch.zip::https://github.com/praticamentetilde/$pkgname/archive/$_branch.zip")
2016-08-06 15:36:23 +00:00
sha512sums=(SKIP)
package() {
cd "$srcdir"
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..."
install -D -m755 astley-rm-config.sh "$pkgdir"/usr/bin/astley-rm-config
2016-08-06 16:10:30 +00:00
echo "Installing license..."
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
2016-08-06 15:36:23 +00:00
echo "Done."
}