Add custom PKGBUILD for opendoas-sudo

This commit is contained in:
Sam A. 2023-01-26 15:01:46 +01:00
parent 7da5e97fdd
commit 2e438c9e87
Signed by: samsapti
GPG Key ID: CBBBE7371E81C4EA
4 changed files with 30 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.pkg.tar.zst
/pkg/**/pkg/
/pkg/**/src/

View File

@ -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
View File

@ -0,0 +1,3 @@
# Custom packages
These are my custom PKGBUILDs.

View 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
}