Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@ vcpkg registry for WikiOpenCite packages

## Updating / adding ports

Fetch the tar.gz of the latest release from
Get the sha512

```
http://github.com/<org>/<repo>/archive/<tag>.tar.gz
```

Calculate the SHA512 and add it to the relevant cmake file.

```
sha512sum <repo>-<tag>.tar.gz
./get_sha512.sh <repo> <version>
```

Format the config file.
Expand Down
16 changes: 16 additions & 0 deletions get_sha512.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

# SPDX-FileCopyrightText: 2025 The University of St Andrews
# SPDX-License-Identifier: GPL-3.0-or-later

# Arguments:
# $1 = repository in the form "OWNER/REPO"
# $2 = version tag (e.g. "0.5.0")

set -euo pipefail

REPO="$1"
VERSION="$2"

curl -sSL "https://github.com/WikiOpenCite/${REPO}/archive/${VERSION}.tar.gz" -o - \
| sha512sum | awk '{print $1}'
4 changes: 2 additions & 2 deletions ports/citescoop-proto/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO WikiOpenCite/proto
REF 0.4.1
SHA512 b5a715729ecb9152f6918e70b07a12cdb7d200a1a0cf469160445c21b71704624350284e1b18ba8b4393e45a9992eb76517cac3e4baf1bd42850ec54815ebeb0
REF 0.5.0
SHA512 11b3667a00bd4d41814a167a1a92119805302a840654f44e5c322d4c9f89484fadebe9451767da302cfcb3f34a4d5cf1e4517eb19f3abf3f79a786c00f16fd2b
HEAD_REF main
)

Expand Down
2 changes: 1 addition & 1 deletion ports/citescoop-proto/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "citescoop-proto",
"version-semver": "0.4.1",
"version-semver": "0.5.0",
"description": "Protobuf definitions used by citescoop.",
"homepage": "https://github.com/WikiOpenCite/citescoop",
"dependencies": [
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"port-version": 0
},
"citescoop-proto": {
"baseline": "0.4.1",
"baseline": "0.5.0",
"port-version": 0
}
}
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/citescoop-proto.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "057b485cf9f3f1be6a730ebf4296675342961ee2",
"version-semver": "0.5.0",
"port-version": 0
},
{
"git-tree": "1fbf465c96e62e2dc8048edc22c1c3ab2788beca",
"version-semver": "0.4.1",
Expand Down