blob: 0e5f39c913cb68f68f999cb8710d7403cf05700c (
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
|
# Maintainer: Jamison Lahman <jamison+aur@lahman.dev>
# Contributor:
# Source: https://github.com/jmelahman/pkgbuilds
pkgname=agent-deck
pkgver=1.16.39
pkgrel=1
pkgdesc="Terminal session manager for AI coding agents. Built with Go + Bubble Tea."
arch=('x86_64' 'aarch64')
url="https://github.com/asheshgoplani/agent-deck"
license=('MIT')
depends=('glibc')
makedepends=('go' 'git')
_commit='d62c2898d623e5353392a06f9a77c19f97b33438'
source=("git+https://github.com/asheshgoplani/agent-deck.git#commit=$_commit")
sha256sums=('SKIP')
prepare() {
cd "$pkgname" || exit
go mod download -modcacherw
}
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
cd "$pkgname" || exit
go build -buildmode=pie \
-trimpath \
-mod=readonly \
-modcacherw \
-ldflags='-s -w' \
-o $pkgname \
./cmd/agent-deck
}
package() {
cd "$pkgname" || exit
install -Dm 755 $pkgname -t "$pkgdir/usr/bin"
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
}
|