blob: 7b56149686a2d84b2663343ca2c98965d6d7fc38 (
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
|
# Maintainer: mrdotx <klassiker@gmx.de>
# Contributor: samsapti <sam at sapti dot me>
# Contributor: Ultracoolguy <dummyd241 at gmaildotcom>
# Quick thanks to deuill, creator of rofi-dmenu
pkgname=opendoas-sudo
pkgver=1
pkgrel=1
pkgdesc="A symlink for using Doas as a drop-in replacement for sudo"
arch=('any')
url="https://github.com/Duncaen/OpenDoas"
license=('MIT')
depends=('opendoas')
provides=('sudo')
conflicts=('sudo')
package() {
#################################################################
# #
# This package is not just a symlink. It provides/conflicts #
# sudo, which means it replaces/uninstalls sudo. This cannot #
# be done with a simple symlink, as many packages have #
# sudo as dependency. Please do not delete this package again. #
# Thanks! #
# #
#################################################################
install -d "$pkgdir"/usr/bin
ln -s $(which doas) "$pkgdir"/usr/bin/sudo
}
|