~bigbes/sr-ht-spec

ref: 8374a1ef0826d0422d3db4685cfea15842c2096d sr-ht-spec/APKBUILD -rw-r--r-- 1.3 KiB
8374a1ef — Eugene Blikh feat(graph): GraphQL-native webhook surface (Phase 5a) 25 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: bigbes <bigbes@gmail.com>
#
# Built by builds.sr.ht (.build.yml) and published to our own apk repo at
# repo.bigb.es/alpine/v3.22/bigbes. The srht deployment installs it from there
# instead of cloning and compiling this repo inside its Dockerfile.
#
# pkgver is rewritten by CI to 0.0.<commit count> before abuild runs — a
# monotonic, unique-per-commit version that the deployment can pin.
pkgname=spec.sr.ht
pkgver=0.0.0
pkgrel=0
pkgdesc="Reviewable document storage for humans and agents"
url="https://sourcecraft.dev/bigbes/sr-ht-spec"
arch="x86_64"
license="MIT"
# !check      — tests want a live Postgres and a git work area
# !tracedeps  — CGO_ENABLED=0, so the binaries are static
options="!check !tracedeps"

source=""
builddir="$startdir"

build() {
	cd "$builddir"
	# CSS strictly before the binaries: web/ go:embed-s static/, so a
	# stylesheet built afterwards would never make it into the binary. The
	# shared scss partials are assembled by CI at ASSETS/scss (no apk ships
	# them).
	make css ASSETS=/usr/share/sourcehut
	CGO_ENABLED=0 make build GOFLAGS="-trimpath"
}

package() {
	cd "$builddir"
	# This Makefile honours DESTDIR; ASSETS must stay the real runtime path so
	# migrations and schema land where specsrht-migrate resolves them.
	make install DESTDIR="$pkgdir" PREFIX=/usr ASSETS=/usr/share/sourcehut
}