From 8547ee5965e039f8d12cdf6b9f3c5f012a06ebe0 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sat, 12 Jul 2025 11:56:39 +0200 Subject: [PATCH] anubis: update to 1.20.0. --- srcpkgs/anubis/patches/npm-assets.diff | 17 ++++++++++++----- srcpkgs/anubis/template | 8 ++++++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/srcpkgs/anubis/patches/npm-assets.diff b/srcpkgs/anubis/patches/npm-assets.diff index 554d49e31b4..93dd5e77c32 100644 --- a/srcpkgs/anubis/patches/npm-assets.diff +++ b/srcpkgs/anubis/patches/npm-assets.diff @@ -1,13 +1,20 @@ diff --git a/package.json b/package.json -index 4041096..c672d64 100644 +index db542f6..1a75070 100644 --- a/package.json +++ b/package.json -@@ -6,7 +6,7 @@ - "scripts": { - "test": "npm run assets && go test ./...", +@@ -8,7 +8,7 @@ "test:integration": "npm run assets && go test -v ./internal/test", + "test:integration:podman": "npm run assets && go test -v ./internal/test --playwright-runner=podman", + "test:integration:docker": "npm run assets && go test -v ./internal/test --playwright-runner=docker", - "assets": "go generate ./... && ./web/build.sh && ./xess/build.sh", + "assets": "./web/build.sh && ./xess/build.sh", "build": "npm run assets && go build -o ./var/anubis ./cmd/anubis", - "dev": "npm run assets && go run ./cmd/anubis --use-remote-address", + "dev": "npm run assets && go run ./cmd/anubis --use-remote-address --target http://localhost:3000", "container": "npm run assets && go run ./cmd/containerbuild", +@@ -27,4 +27,4 @@ + "postcss-import-url": "^7.2.0", + "postcss-url": "^10.1.3" + } +-} +\ No newline at end of file ++} diff --git a/srcpkgs/anubis/template b/srcpkgs/anubis/template index 4d9d99b991f..e9eb11ef714 100644 --- a/srcpkgs/anubis/template +++ b/srcpkgs/anubis/template @@ -1,6 +1,6 @@ # Template file for 'anubis' pkgname=anubis -version=1.18.0 +version=1.20.0 revision=1 build_style=go go_import_path="github.com/TecharoHQ/anubis" @@ -14,7 +14,7 @@ license="MIT" homepage="https://anubis.techaro.lol/" changelog="https://github.com/TecharoHQ/anubis/releases" distfiles="https://github.com/TecharoHQ/anubis/archive/refs/tags/v${version}.tar.gz" -checksum=b543f3c4af32a71994f4290b901b5670ce3cc7756b9db2c86d2569286d6dd6ef +checksum=1c3dc09c88712519e1c59e40f1d38b121ff3afcbcc0b6c4983b4a4940c91ad8e system_accounts="_anubis" @@ -23,6 +23,10 @@ pre_build() { npm run assets } +do_check() { + go test -p "$XBPS_MAKEJOBS" ${make_check_args} ./... +} + post_install() { vsv anubis vlicense LICENSE