kubo-git

MEDIUM
maintainer RubenKelevra 23 votes scanned 2026-09-27 17:19:13.301701
View on AUR
Why flagged

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

Triggered rules

Medium Recently orphaned & re-adopted orphaned_readopted

This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.

PKGBUILD

1# Maintainer: Revvy <nothingtohide@revvy.de>
2# Contributor: Mahdi Sarikhani <mahdisarikhani@outlook.com>
3# Contributor: @RubenKelevra <cyrond@gmail.com>
4# Contributor: Johannes Löthberg <johannes@kyriasis.com>
5# Contributor: Anatol Pomozov
6# Contributor: kpcyrd <git@rxv.cc>
7# Contributor: Frederik “Freso” S. Olesen <freso.dk@gmail.com>
8# Contributor: Jakub "Kubuxu" Sztandera <kubuxu@protonmail.ch>
9# Contributor: Ian Naval <ianonavy@gmail.com>
10
11_pkgname=kubo
12_old_pkgname=go-ipfs
13pkgname="${_pkgname}-git"
14pkgver=0.30.0.r15.gb71cf0d
15pkgrel=1
16pkgdesc="IPFS implementation in Go"
17url="https://github.com/ipfs/kubo"
18arch=('x86_64')
19license=('MIT AND Apache-2.0')
20depends=('glibc')
21makedepends=('go' 'git')
22optdepends=('fuse2: for mounting/advanced use')
23provides=("${_pkgname}" 'ipfs' "${_old_pkgname}")
24conflicts=("${_pkgname}" "${_old_pkgname}" "${_old_pkgname}-git")
25replaces=("${_old_pkgname}-git")
26source=("git+${url}.git")
27b2sums=('SKIP')
28
29pkgver() {
30 cd "${_pkgname}"
31 git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
32}
33
34prepare() {
35 cd "${_pkgname}"
36 sed -i 's|/usr/local/bin/ipfs|/usr/bin/ipfs|' misc/systemd/*.service
37 sed -i '/^User=ipfs$/d' misc/systemd/*.service
38 sed -i '/^Group=ipfs$/d' misc/systemd/*.service
39 go mod download
40}
41
42build() {
43 cd "${_pkgname}"
44 export CGO_LDFLAGS="$LDFLAGS"
45 export CGO_CFLAGS="$CFLAGS"
46 export CGO_CPPFLAGS="$CPPFLAGS"
47 export CGO_CXXFLAGS="$CXXFLAGS"
48 export CGO_REQUIRED="1"
49 export GOFLAGS="-buildmode=pie -mod=readonly -modcacherw -ldflags '-compressdwarf=false -linkmode=external'"
50 make build
51 cmd/ipfs/ipfs commands completion bash > ipfs-completion.bash
52 cmd/ipfs/ipfs commands completion fish > ipfs-completion.fish
53 cmd/ipfs/ipfs commands completion zsh > ipfs-completion.zsh
54}
55
56package() {
57 cd "${_pkgname}"
58
59 install -Dm 755 cmd/ipfs/ipfs "${pkgdir}/usr/bin/ipfs"
60 install -Dm 644 -t "${pkgdir}/usr/lib/systemd/user/" misc/systemd/*.service
61 install -Dm 644 -t "${pkgdir}/usr/lib/systemd/system/" misc/systemd/*.socket
62
63 install -Dm 644 ipfs-completion.bash "${pkgdir}/usr/share/bash-completion/completions/ipfs"
64 install -Dm 644 ipfs-completion.fish "${pkgdir}/usr/share/fish/vendor_completions.d/ipfs.fish"
65 install -Dm 644 ipfs-completion.zsh "${pkgdir}/usr/share/zsh/site-functions/_ipfs"
66
67 install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE-MIT
68 install -Dm 644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE-APACHE
69 install -Dm 644 -t "${pkgdir}/usr/share/doc/${pkgname}/" README.md
70}
71

Scan history

Scanned at (UTC)SeverityRules
2026-09-27 17:19:13 Medium 1
2026-06-18 16:11:54 Clean 0

Report a package

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

0 / 4000
Your suggestion