aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--internal/rosa/package/pkgsite.az34
1 files changed, 34 insertions, 0 deletions
diff --git a/internal/rosa/package/pkgsite.az b/internal/rosa/package/pkgsite.az
new file mode 100644
index 00000000..a1e4a64a
--- /dev/null
+++ b/internal/rosa/package/pkgsite.az
@@ -0,0 +1,34 @@
+package pkgsite {
+ description = "a documentation server";
+ website = "https://pkg.go.dev/golang.org/x/pkgsite";
+ anitya = 393659;
+
+ version# = "0.7.0";
+ source = remoteGit {
+ url = "https://go.googlesource.com/pkgsite";
+ tag = "v"+version;
+ checksum = "-ZJmXO-hvym8SiM4FlquQsqBEXD6L3tgxNcAGm6-HwZYKywoGQhRH0eTQUVGtLCl";
+ };
+
+ net = "GOMODCACHE=/tmp/cache go mod vendor && cp -r vendor/. /work";
+ checksumN = "FwsRwWvV4-30FiYsrbyzhZff6NlqriI6wAGlWeJkubzcNsIdG05sKd3QS_AbZD_L";
+
+ enter = true;
+ writable = true;
+ chmod = true;
+
+ env = [ "GOCACHE=/tmp/cache" ];
+ exec = generic {
+ chdir = false;
+ build = "ln -sf ../net vendor && "+
+ "go build -mod=vendor "+
+ "-o /work"+prefix+"/bin/ "+
+ "./cmd/pkgsite\n";
+ check = "go test ./...\n";
+ };
+
+ tools = [
+ go,
+ bash,
+ ];
+}