bagworm

LOW
maintainer a2eed1f1e4b9255b 0 votes scanned 2026-08-30 17:43:42.301716
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1pkgname=bagworm
2# GitHub archives extract to the repository's canonical casing, which is
3# "Bagworm" - keep this in sync if the repo is ever renamed to lowercase.
4_repo=Bagworm
5pkgver=0.1.0
6pkgrel=1
7pkgdesc="Opinionated developer UX for OCI containers - drops you into a shell inside your project's image"
8arch=('x86_64' 'aarch64')
9url="https://github.com/Smiduweorc/Bagworm"
10license=('MIT')
11depends=('glibc')
12makedepends=('go')
13# -trimpath rewrites source paths, so the debug package ends up with no
14# sources and a dangling build-id symlink. Go debug packages aren't useful
15# here; skip them rather than ship a broken one.
16options=('!debug')
17optdepends=('podman: container runtime'
18 'docker: container runtime'
19 'nerdctl: container runtime')
20source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
21sha256sums=('cb9917a2bb5e01d7c40c69dddb1a227c814a5d4d97ab7f9f34b7e9d08d122373')
22
23prepare() {
24 cd "$_repo-$pkgver"
25 # Populate the module cache here so build() needs no network.
26 go mod download
27}
28
29build() {
30 cd "$_repo-$pkgver"
31
32 export CGO_CPPFLAGS="${CPPFLAGS}"
33 export CGO_CFLAGS="${CFLAGS}"
34 export CGO_CXXFLAGS="${CXXFLAGS}"
35 export CGO_LDFLAGS="${LDFLAGS}"
36 export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
37
38 # No -s -w: leave symbol handling to makepkg's own strip option rather
39 # than hardcoding it here.
40 go build -ldflags "-linkmode=external -X main.version=v$pkgver" \
41 -o build/bagworm ./cmd/bagworm
42
43 local sh
44 for sh in bash zsh fish; do
45 build/bagworm completion "$sh" >"build/completion.$sh"
46 done
47}
48
49check() {
50 cd "$_repo-$pkgver"
51 # Integration tests sit behind the "integration" build tag and need a
52 # real runtime, so a plain run stays hermetic.
53 go test ./...
54}
55
56package() {
57 cd "$_repo-$pkgver"
58
59 install -Dm755 build/bagworm "$pkgdir/usr/bin/bagworm"
60
61 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
62 install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
63 install -Dm644 bagworm.example.yaml \
64 "$pkgdir/usr/share/doc/$pkgname/bagworm.example.yaml"
65
66 install -Dm644 build/completion.bash \
67 "$pkgdir/usr/share/bash-completion/completions/bagworm"
68 install -Dm644 build/completion.zsh \
69 "$pkgdir/usr/share/zsh/site-functions/_bagworm"
70 install -Dm644 build/completion.fish \
71 "$pkgdir/usr/share/fish/vendor_completions.d/bagworm.fish"
72}

Scan history

Scanned at (UTC)SeverityRules
2026-08-30 17:43:42 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion