blob: 90b017e10418300705b5a331c4838d2e4a219550 (
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
|
# Maintainer: jakeb-grant
pkgname=upkeep-git
pkgver=0.1.7.r0.gcc8df2a
pkgrel=1
pkgdesc="TUI for managing Arch Linux updates, packages, and system maintenance"
arch=('x86_64' 'aarch64')
url="https://github.com/jakeb-grant/upkeep"
license=('MIT')
depends=('pacman' 'curl')
optdepends=(
'yay: AUR support (default helper)'
'paru: AUR support (alternative helper)'
'pacman-contrib: update checking (checkupdates) and cache cleanup (paccache)'
'wl-clipboard: clipboard support on Wayland'
'xclip: clipboard support on X11'
)
makedepends=('cargo' 'git')
provides=('upkeep')
conflicts=('upkeep')
source=("git+https://github.com/jakeb-grant/upkeep.git")
sha256sums=('SKIP')
pkgver() {
cd upkeep
git describe --long --tags 2>/dev/null | sed 's/^v//;s/-/.r/;s/-/./' \
|| printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd upkeep
export RUSTUP_TOOLCHAIN=stable
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd upkeep
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release
}
package() {
cd upkeep
install -Dm755 "target/release/upkeep" "$pkgdir/usr/bin/upkeep"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|