-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPKGBUILD
More file actions
44 lines (39 loc) · 1.12 KB
/
PKGBUILD
File metadata and controls
44 lines (39 loc) · 1.12 KB
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
# Copyright (c) 2026 l5yth
# SPDX-License-Identifier: Apache-2.0
# Maintainer: l5yth <aur@l5y.tech>
pkgname=psn-git
pkgver=0.1.1.r6.g3c94f33
pkgrel=1
pkgdesc="Terminal UI for process status navigation and control"
arch=('x86_64' 'aarch64' 'armv6h' 'armv7h')
url="https://github.com/l5yth/psn"
license=('Apache')
options=('!debug')
depends=()
makedepends=('cargo' 'git')
source=("git+https://github.com/l5yth/psn.git")
sha256sums=('SKIP')
pkgver() {
cd "${srcdir}/psn"
local desc
desc="$(git describe --long --tags --abbrev=7 2>/dev/null || true)"
if [[ -n "${desc}" ]]; then
printf '%s\n' "${desc}" | sed 's/^v//; s/-/.r/; s/-/./'
else
printf "0.0.0.r%s.g%s\n" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
fi
}
build() {
cd "${srcdir}/psn"
cargo build --release --locked
}
check() {
cd "${srcdir}/psn"
cargo test --all --all-features --locked
}
package() {
cd "${srcdir}/psn"
install -Dm755 "target/release/psn" "${pkgdir}/usr/bin/psn"
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
}