summaryrefslogtreecommitdiff
path: root/main/doas-sudo-shim/APKBUILD
blob: 03a13319d07bd033103978bdaf5a8dfc6727bba2 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=doas-sudo-shim
# Note: This should be always lower than pkgver of the real sudo!
pkgver=0.1.1
pkgrel=0
pkgdesc="A shim for the sudo command that utilizes doas"
url="https://github.com/jirutka/doas-sudo-shim"
arch="noarch"
license="ISC"
depends="cmd:doas"
makedepends="asciidoctor doas"
subpackages="$pkgname-doc"
source="https://github.com/jirutka/doas-sudo-shim/archive/v$pkgver/doas-sudo-shim-$pkgver.tar.gz
	help-alpine.patch
	"
options="!check"  # no tests provided

build() {
	make man
}

package() {
	depends="$depends !sudo"  # this must not be defined on top-level

	make install DESTDIR="$pkgdir" PREFIX=/usr
}

sha512sums="
f97654e4328a5d632b35a80772ab385c461614c771aafe89440240e6e733ac9572db1b6669b7146a1db0463b70cd34f3f8693df3b2a7bd07912e6a3d6a15e8ae  doas-sudo-shim-0.1.1.tar.gz
86e2d7e7ac3bb855ce2677e2f86092facb6da2f8d4e6fc24149b9bf836590be17f340fba54b74fd24d280b79be6ed97d405f7ce2e972f2bb5d12cf6bfe0bc9f7  help-alpine.patch
"