Make REUSE compliant

This commit is contained in:
Claudia Pellegrino 2025-07-26 15:46:04 +02:00
parent 96920253e4
commit 55747d0f9b
No known key found for this signature in database
GPG key ID: 7AA67DE7B73139CE
7 changed files with 45 additions and 19 deletions

View file

@ -1,5 +1,8 @@
# https://editorconfig.org
# SPDX-FileCopyrightText: Arch Linux contributors
# SPDX-License-Identifier: 0BSD
root = true
[*]

3
.gitignore vendored
View file

@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: Arch Linux contributors
# SPDX-License-Identifier: 0BSD
/.vscode
/src
/pkg

12
LICENSE Normal file
View file

@ -0,0 +1,12 @@
Copyright Arch Linux Contributors
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

1
LICENSES/0BSD.txt Symbolic link
View file

@ -0,0 +1 @@
../LICENSE

22
REUSE.toml Normal file
View file

@ -0,0 +1,22 @@
version = 1
[[annotations]]
path = [
"PKGBUILD",
"README.md",
"keys/**",
".SRCINFO",
".nvchecker.toml",
"*.install",
"*.sysusers",
"*.tmpfiles",
"*.logrotate",
"*.pam",
"*.service",
"*.socket",
"*.timer",
"*.desktop",
"*.hook",
]
SPDX-FileCopyrightText = "Arch Linux contributors"
SPDX-License-Identifier = "0BSD"

View file

@ -1,19 +0,0 @@
#!/usr/bin/env bash
set -eu -o pipefail
cd "$(dirname "${0}")"
source PKGBUILD
_latest="$(
curl -s -o /dev/null -w '%{json}' "${_url_base}-latest.tar.gz" \
| jq -r '.redirect_url' \
| sed -E 's/.*SDK-(.*)\.tar\.gz/\1/'
)"
if [ "${_latest}" != "${pkgver}" ]
then
echo >&2 "${pkgname}: AUR ${pkgver} != upstream ${_latest}"
exit 1
fi
echo >&2 "${pkgname}: AUR ${pkgver} == upstream ${_latest}"

View file

@ -1,4 +1,8 @@
#!/usr/bin/env bash
# SPDX-FileCopyrightText: Arch Linux contributors
# SPDX-License-Identifier: 0BSD
if [[ -z "${PLAYDATE_SDK_PATH:-}" ]]; then
export PLAYDATE_SDK_PATH="${XDG_DATA_HOME:-"${HOME}/.local/share"}/playdate-sdk"
fi