git-pages
LOW
maintainer rocka
0 votes
scanned 2026-11-03 16:05:05.794714
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: Rocket Aaron <rocka@archlinuxcn.org>
2
3
pkgname=git-pages
4
pkgver=0.10.1
5
pkgrel=1
6
pkgdesc='Scalable static site server for Git forges'
7
url='https://codeberg.org/git-pages/git-pages'
8
arch=(x86_64)
9
license=(0BSD)
10
depends=(glibc)
11
makedepends=(go)
12
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
13
'git-pages.service')
14
sha256sums=('667b141c7865a416c790bdddeb545072bfd857b78fb7df4e85bdee4385bbc1f9'
15
'e44ad5aa362efce9454f88356fdddac9336dcacb6ef64f5e0efd8578d37e8003')
16
17
prepare() {
18
cd "${pkgname}"
19
# create directory for build output
20
mkdir build
21
# download dependencies
22
export GOPATH="${srcdir}"
23
go mod download
24
}
25
26
build() {
27
cd "${pkgname}"
28
# set Go flags
29
export CGO_CPPFLAGS="${CPPFLAGS}"
30
export CGO_CFLAGS="${CFLAGS}"
31
export CGO_CXXFLAGS="${CXXFLAGS}"
32
export GOPATH="${srcdir}"
33
go build -v \
34
-buildmode=pie \
35
-mod=readonly \
36
-modcacherw \
37
-ldflags "-compressdwarf=false \
38
-linkmode external \
39
-s -w -buildid='' \
40
-extldflags '${LDFLAGS}' \
41
-X main.versionOverride=v$pkgver" \
42
-o build/git-pages
43
}
44
45
package() {
46
cd "${pkgname}"
47
install -vDm755 -t "${pkgdir}/usr/bin" build/git-pages
48
install -vDm644 -t "${pkgdir}/usr/lib/systemd/system" "${srcdir}/git-pages.service"
49
install -vDm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE.txt
50
}
51
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-03 16:05:05 | Low | 1 |