blob: 7b818db37ba992ff3025ee77fcb9e87c24c52bcc (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Jason Ozias <jason.g.ozias@gmail.com>
pkgname=moshpit-agent-systemd-creds
pkgver=0.9.3
pkgrel=1
pkgdesc="Moshpit agent daemon — systemd credentials unlock backend"
arch=('x86_64')
url="https://github.com/rustyhorde/moshpit"
license=('MIT' 'Apache-2.0')
provides=('moshpit-agent')
conflicts=('moshpit-agent' 'moshpit-agent-fido2' 'moshpit-agent-ssh-agent-piggyback'
'moshpit-agent-secret-service' 'moshpit-agent-tpm' 'moshpit-agent-fprintd'
'moshpit-agent-full')
depends=('systemd')
makedepends=('cargo' 'cmake' 'gcc')
source=("$pkgname-$pkgver.tar.gz::https://github.com/rustyhorde/moshpit/archive/v$pkgver.tar.gz")
sha256sums=('a8cdb62f7a1c6bc54a7d3ab15871917a214b4e4b5cd44fbf3ba877c3ca14b63c')
prepare() {
cd "moshpit-$pkgver"
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target x86_64-unknown-linux-gnu
}
build() {
cd "moshpit-$pkgver"
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
export VERGEN_IDEMPOTENT=1
cargo build --release --locked --bin mpa --features systemd-creds
cargo xtask dist mpa
}
package() {
cd "moshpit-$pkgver"
install -Dm755 "target/release/mpa" "$pkgdir/usr/bin/mpa"
install -Dm644 "dist/mpa/mpa.1" "$pkgdir/usr/share/man/man1/mpa.1"
install -Dm644 "dist/mpa/mpa.bash" \
"$pkgdir/usr/share/bash-completion/completions/mpa"
install -Dm644 "dist/mpa/_mpa" \
"$pkgdir/usr/share/zsh/site-functions/_mpa"
install -Dm644 "dist/mpa/mpa.fish" \
"$pkgdir/usr/share/fish/vendor_completions.d/mpa.fish"
install -Dm644 "dist/mpa/moshpit-agent.service" \
"$pkgdir/usr/lib/systemd/user/moshpit-agent.service"
install -Dm644 "dist/mpa/moshpit-agent.socket" \
"$pkgdir/usr/lib/systemd/user/moshpit-agent.socket"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
}
|