summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25bc7ef6ef38e127af816b09aca2253bc80346e3 (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
# Maintainer: Krafty Kactus <tkk13909@proton.me>

pkgname=sudo-askpass-git
pkgver=1.0.r17.8f7d350
pkgrel=1
pkgdesc="A simple askpass program so sudo doesn't look so boring"
arch=(x86_64)
url="https://github.com/Absolpega/sudo-askpass"
license=('MIT')
makedepends=(git cargo)
source=("git+$url")
md5sums=('SKIP')

pkgver() {
	cd "sudo-askpass"
	printf "1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd sudo-askpass
	cargo build
}

package() {
	cd sudo-askpass
	sudo cp ./target/debug/sudo-askpass /usr/bin/
}