Add custom PKGBUILD for opendoas-sudo
This commit is contained in:
parent
7da5e97fdd
commit
2e438c9e87
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.pkg.tar.zst
|
||||
/pkg/**/pkg/
|
||||
/pkg/**/src/
|
|
@ -66,6 +66,12 @@ if [ -n "$DASH" ] && ! command -v dash >/dev/null 2>&1; then
|
|||
$INSTALL dash
|
||||
fi
|
||||
|
||||
if [ "$(lsb_release -si)" = "Artix" ]; then
|
||||
sleep 0.5
|
||||
echo "=> Installing custom PKGBUILD opendoas-sudo"
|
||||
(cd pkg/opendoas-sudo && makepkg -si)
|
||||
fi
|
||||
|
||||
sleep 0.5
|
||||
echo "=> Done!"
|
||||
|
||||
|
|
3
pkg/README.md
Normal file
3
pkg/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Custom packages
|
||||
|
||||
These are my custom PKGBUILDs.
|
18
pkg/opendoas-sudo/PKGBUILD
Normal file
18
pkg/opendoas-sudo/PKGBUILD
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Original author: Ultracoolguy <dummyd241 at gmaildotcom>
|
||||
# Quick thanks to deuill, creator of rofi-dmenu
|
||||
# The AUR didn't want this package, so I'm adding it here
|
||||
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() {
|
||||
install -d "$pkgdir"/usr/bin
|
||||
ln -s $(which doas) "$pkgdir"/usr/bin/sudo
|
||||
}
|
Loading…
Reference in a new issue