blob: ceeea534a43e620736aa09ce2161cd874b215b19 (
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: Viktor Danov <orangeleaf12@gmail.com>
# SPDX-License-Identifier: 0BSD
pkgname=uah-bin
pkgver=1.16.2
pkgrel=1
pkgdesc='Terminal coding agent that works like Codex, built on unreal-agent'
arch=('x86_64' 'aarch64')
url='https://github.com/viktordanov/uah'
license=('Apache-2.0')
depends=('bubblewrap')
optdepends=('wl-clipboard: paste images on Wayland'
'xclip: paste images on X11'
'git: repository context for the agent')
provides=("uah=${pkgver}")
conflicts=('uah')
options=('!strip' '!debug')
_archive="uah-${pkgver}-${CARCH}-unknown-linux-gnu"
source_x86_64=("${url}/releases/download/v${pkgver}/uah-${pkgver}-x86_64-unknown-linux-gnu.tar.gz")
source_aarch64=("${url}/releases/download/v${pkgver}/uah-${pkgver}-aarch64-unknown-linux-gnu.tar.gz")
sha256sums_x86_64=('f3fe61237bcb541f279783cf99cf21af5d28a68cffd7f742507bc3f337cd8d1b')
sha256sums_aarch64=('a10c568ffd1eb639130f13e7fad140598489bc826ca352c192a8f9f3ee47fdd6')
build() {
cd "${_archive}"
./uah completion bash > uah.bash
./uah completion zsh > _uah
./uah completion fish > uah.fish
}
check() {
cd "${_archive}"
[[ $(./uah --version) == "uah version v${pkgver}" ]]
test -s uah.bash
test -s _uah
test -s uah.fish
}
package() {
cd "${_archive}"
install -Dm755 uah "${pkgdir}/usr/bin/uah"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 NOTICE "${pkgdir}/usr/share/licenses/${pkgname}/NOTICE"
install -Dm644 THIRD_PARTY_NOTICES.md "${pkgdir}/usr/share/licenses/${pkgname}/THIRD_PARTY_NOTICES.md"
install -Dm644 uah.bash "${pkgdir}/usr/share/bash-completion/completions/uah"
install -Dm644 _uah "${pkgdir}/usr/share/zsh/site-functions/_uah"
install -Dm644 uah.fish "${pkgdir}/usr/share/fish/vendor_completions.d/uah.fish"
}
|