kubo-git
MEDIUM
maintainer RubenKelevra
23 votes
scanned 2026-09-27 17:19:13.301701
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
13
pkgname="${_pkgname}-git"
14
pkgver=0.30.0.r15.gb71cf0d
15
pkgrel=1
16
pkgdesc="IPFS implementation in Go"
17
url="https://github.com/ipfs/kubo"
18
arch=('x86_64')
19
license=('MIT AND Apache-2.0')
20
depends=('glibc')
21
makedepends=('go' 'git')
22
optdepends=('fuse2: for mounting/advanced use')
23
provides=("${_pkgname}" 'ipfs' "${_old_pkgname}")
24
conflicts=("${_pkgname}" "${_old_pkgname}" "${_old_pkgname}-git")
25
replaces=("${_old_pkgname}-git")
26
source=("git+${url}.git")
27
b2sums=('SKIP')
28
29
pkgver() {
30
cd "${_pkgname}"
31
git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
32
}
33
34
prepare() {
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
42
build() {
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
56
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-27 17:19:13 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |