summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d851e0936d3d3116900fbde69dda182a44bbe68 (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
33
34
35
36
# Maintainer: Ischa Abraham <contact@ischa.dev>
pkgname=passh-agent-git
pkgver=0.2.0.8.gb3c6ba6
pkgrel=1
pkgdesc="An ssh-agent implementation to fetch your SSH keys from Pass."
url="https://github.com/MrPixelized/passh-agent"
license=("GPL3")
arch=("any")
provides=("passh-agent")
conflicts=("passh-agent")
makedepends=("rust" "cargo" "git")
source=("git+https://github.com/MrPixelized/passh-agent.git")
sha256sums=("SKIP")

pkgver() {
	cd "$srcdir/passh-agent"
	git describe --long --tags | sed "s/^v//" | sed "s/-/./g"
}

build() {
	cd "$srcdir/passh-agent"
	pwd
	env CARGO_INCREMENTAL=0 cargo build --release
}

check() {
	cd "$srcdir/passh-agent"
	env CARGO_INCREMENTAL=0 cargo test --release
}

package() {
	cd "$srcdir/passh-agent"

    install -Dm755 "target/release/passh-agent" -t "$pkgdir/usr/bin/"
	install -Dm644 "extra/passh-agent.service" -t "$pkgdir/usr/lib/systemd/user/"
}