diff --git a/.github/workflows/reuse.yaml b/.github/workflows/reuse.yaml new file mode 100644 index 0000000..36718ab --- /dev/null +++ b/.github/workflows/reuse.yaml @@ -0,0 +1,15 @@ +# SPDX-FileCopyrightText: © 2024 Mark Delk +# +# SPDX-License-Identifier: Zlib + +name: REUSE Compliance Check + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: REUSE Compliance Check + uses: fsfe/reuse-action@v4 diff --git a/.gitignore b/.gitignore index fdf0965..18a5375 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ +# SPDX-FileCopyrightText: © 2024 Mark Delk +# +# SPDX-License-Identifier: Zlib + # zig artifacts and cache zig-out .zig-cache diff --git a/LICENSES/Zlib.txt b/LICENSES/Zlib.txt new file mode 100644 index 0000000..e0e3605 --- /dev/null +++ b/LICENSES/Zlib.txt @@ -0,0 +1,11 @@ +zlib License + +This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: + + 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. + + 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. + + 3. This notice may not be removed or altered from any source distribution. diff --git a/README.md b/README.md index 1abbc29..1b67599 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ - - + # sdl.zig @@ -8,3 +11,22 @@ Build [SDL](https://github.com/libsdl-org/SDL) using [zig](https://ziglang.org). ## License [Zlib](https://spdx.org/licenses/Zlib.html), same as [SDL](https://github.com/libsdl-org/SDL). + +### reuse + +This project is using [reuse](https://reuse.software/) to ensure licensing is clear. + +To update/add files: + +``` +reuse annotate -c "Mark Delk " -l Zlib -y 2024 --copyright-style spdx-symbol --skip-existing --skip-unrecognised `fd -t f -H` + +# NOTE: reuse doesn't yet support .{zig,zon} files, so do those separately +reuse annotate -c "Mark Delk " -l Zlib -y 2024 --copyright-style spdx-symbol --skip-existing --style c `fd -t f | rg zig` +``` + +To confirm everything's in compliance: + +``` +reuse lint +``` diff --git a/build.zig b/build.zig index bafc4d3..79f3cd2 100644 --- a/build.zig +++ b/build.zig @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: © 2024 Mark Delk +// +// SPDX-License-Identifier: Zlib + const std = @import("std"); pub fn build(b: *std.Build) !void { diff --git a/build.zig.zon b/build.zig.zon index ffe8e09..2c9ccc6 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: © 2024 Mark Delk +// +// SPDX-License-Identifier: Zlib + .{ .name = "sdl", .version = "0.0.0", diff --git a/build/wayland/build.zig b/build/wayland/build.zig index b6890b7..7ff4fce 100644 --- a/build/wayland/build.zig +++ b/build/wayland/build.zig @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: © 2024 Mark Delk +// +// SPDX-License-Identifier: Zlib + const std = @import("std"); pub fn build(b: *std.Build) !void { diff --git a/build/wayland/build.zig.zon b/build/wayland/build.zig.zon index de71fb0..9131c71 100644 --- a/build/wayland/build.zig.zon +++ b/build/wayland/build.zig.zon @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: © 2024 Mark Delk +// +// SPDX-License-Identifier: Zlib + .{ .name = "wayland", .version = "0.0.0", diff --git a/src/example.zig b/src/example.zig index ba74b2c..42fbabb 100644 --- a/src/example.zig +++ b/src/example.zig @@ -1,3 +1,7 @@ +// SPDX-FileCopyrightText: © 2024 Mark Delk +// +// SPDX-License-Identifier: Zlib + const std = @import("std"); const c = @import("sdl").c;