bindery

LOW
maintainer Gilrain 0 votes scanned 2026-09-06 17:12:21.241024
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

1# Maintainer: Gilrain <gilrain+libre.arch A_T castelmo DOT_ re>
2
3pkgname=bindery
4pkgver=1.34.0
5pkgrel=1
6pkgdesc="Automated book download manager for Usenet."
7arch=('x86_64')
8url="https://github.com/vavallee/bindery"
9license=('MIT')
10makedepends=('go' 'npm')
11optdepends=(
12 'sabnzbd: usenet downloader'
13 'nzbget: usenet downloader'
14 'qbittorrent: torrent downloader'
15 'deluge: torrent downloader'
16 'rtorrent: torrent downloader'
17 'transmission-cli: torrent downloader (CLI and daemon)'
18 'transmission-gtk: torrent downloader (GTK+)'
19 'transmission-qt: torrent downloader (Qt)'
20 'prowlarr: automatically integrates with and syncs indexers'
21 'audiobookshelf: automatically integrates audio books'
22 'calibre: push imports to calibre'
23 'grimmory: push imports to grimmory'
24)
25source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz"
26 "bindery.service"
27 "bindery.sysusers"
28 "bindery.tmpfiles")
29b2sums=('fc5fc486d63abe77d29be008da99507109e98762bec9fc3ede074b2fe569017de8ac1677ba983f243a524b311df3359f19b5706df93a7147744799b96d76a3e7'
30 'cde79a1296a1b4054aae9d213f905b4d0ecd635cdffa7e7979dcc25a3ee128e733c0903ca398a60736fa0c5e48c6be537ee1c1706442d240b2553f0dddb9e763'
31 '21805141f8ce1101fdcc7a0ce9d1f2224d5dec2c7f3b6d24c41623c11ffb59446be5c07c35083295e2347ef2f41e1007df4c5cffac0bfaa6e479fbf0b3f3065e'
32 'e86254c28f1ee7bd495e53da384b628c579188ace5905ed2d77ebb0cbc76eb5348a7cc9f5057901639487303f053b6081609a4b664d4ef9d8954a5ffb6386598')
33
34prepare() {
35 cd "${pkgname}-${pkgver}"
36 export GOPATH="${srcdir}"
37 go mod download -modcacherw
38}
39
40build() {
41 cd "${pkgname}-${pkgver}"
42 # Frontend: tsc/vite are devDependencies, so install them first
43 cd web
44 npm ci --include=dev --cache "${srcdir}/npm-cache"
45 npm run build
46 cd ..
47 # Embed the assets (internal/webui/embed.go uses //go:embed all:dist)
48 cp -r web/dist/* internal/webui/dist/
49
50 # Go: upstream builds with CGO_ENABLED=0 (pure-Go sqlite driver)
51 export CGO_ENABLED=0
52 export GOFLAGS='-buildmode=pie -trimpath -mod=readonly -modcacherw'
53 export GOPATH="${srcdir}"
54 go build -ldflags "-X main.version=${pkgver}" -o bindery ./cmd/bindery
55}
56
57# check() {
58# cd "${pkgname}-${pkgver}"
59# export GOPATH="${srcdir}"
60# go test ./...
61# }
62
63package() {
64 cd "${pkgname}-${pkgver}"
65 install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
66 install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
67 cp -R docs/* "${pkgdir}/usr/share/doc/${pkgname}"
68 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
69 cd "${srcdir}"
70 install -Dm644 "${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
71 install -Dm644 "${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
72 install -Dm644 "${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
73}
74

Scan history

Scanned at (UTC)SeverityRules
2026-09-06 17:12:21 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