treehouse
LOW
maintainer Dominiquini
1 votes
scanned 2026-10-06 08:02:16.298752
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: Rafael Dominiquini <rafaeldominiquini at gmail dot com>
2
3
_pkgauthor=kunchenguid
4
_pkgname=treehouse
5
pkgname=${_pkgname}
6
pkgdesc="Manage worktrees without managing worktrees"
7
8
pkgver=3.1.2
9
pkgrel=1
10
_pkgvername=v${pkgver}
11
12
arch=('x86_64' 'aarch64')
13
_barch=('linux-amd64' 'linux-arm64')
14
15
url="https://github.com/${_pkgauthor}/${_pkgname}"
16
_urlraw="https://raw.githubusercontent.com/${_pkgauthor}/${_pkgname}/${_pkgvername}"
17
18
license=('MIT')
19
20
makedepends=('go')
21
depends=('git')
22
23
provides=("${_pkgname}")
24
25
source=("${pkgname}-${pkgver}.tgz::${url}/archive/${_pkgvername}.tar.gz")
26
sha256sums=('ded43f67f4efb4a0bc727136c15e4aec1d06e4815e2f0079dac053b7de924288')
27
28
29
prepare() {
30
cd "${srcdir}/${pkgname}-${pkgver}/" || exit 1
31
32
go mod tidy
33
}
34
35
build() {
36
cd "${srcdir}/${pkgname}-${pkgver}/" || exit 1
37
38
export CGO_ENABLED=0
39
40
if [[ -f .ldflags ]]; then
41
ldflags=$(<.ldflags)
42
else
43
# interim until commit fix is released
44
ldflags="-checklinkname=0"
45
fi
46
47
go build -trimpath -ldflags "${ldflags}" -o "build/${pkgname}" ./cmd
48
}
49
50
package() {
51
cd "${srcdir}/${pkgname}-${pkgver}/" || exit 1
52
53
install -Dm755 "build/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
54
55
install -Dm644 "README.md" "${pkgdir}/usr/share/doc/${pkgname}/README.md"
56
57
install -Dm644 "${pkgname}.toml.example" "${pkgdir}/usr/share/doc/${pkgname}/config/${pkgname}.example.toml"
58
59
install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
60
}
61
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-06 08:02:16 | Low | 1 |