blob: 3914de4a1bd8df5161cf747561268f64d3b33c7b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Maintainer: Deckweiss <Deckweiss75@gmail.com>
_name="auto-root"
pkgname="${_name}-git"
pkgver=1.0.30
pkgrel=2
pkgdesc="A script that automatically reruns your last command as root if you forgot it. Will ALWAYS prompt for the password. Requires 'bash' or 'zsh'. Add /opt/auto-root/auto-root-shrc to your *rc file on first install."
arch=('any')
url="https://github.com/Deckweiss/${_name}"
license=('GPLv3')
depends=(
'util-linux'
'coreutils'
)
optdepends=(
'bash: either one of the two shells is required'
'zsh: either one of the two shells is required'
'sudo: you can use su instead'
)
conflicts=(${_name})
provides=(${_name})
source=("git+https://github.com/Deckweiss/$_name.git")
sha256sums=('SKIP')
install=$_name.install
pkgver() {
cd "${srcdir}/${_name}"
printf "1.0.%s" "$(git rev-list --count HEAD)"
}
package() {
cd "$_name"
install -D -t "$pkgdir/opt/auto-root" "auto-root.bash" "auto-root-shrc"
}
|