From 7be93dacac668f9c2d05e72e8821afd452f502f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gerg=C5=91=20S=C3=A1lyi?= Date: Tue, 22 Apr 2025 14:55:28 +0200 Subject: [PATCH] Clarify licensing information, note GPL dependencies and built objects --- LICENSE-MIT | 2 +- PKGBUILD | 4 ++-- README.md | 6 ++++++ scripts/cargo-tree-licences-not-mit.sh | 3 +++ 4 files changed, 12 insertions(+), 3 deletions(-) create mode 100755 scripts/cargo-tree-licences-not-mit.sh diff --git a/LICENSE-MIT b/LICENSE-MIT index 7a15056..0e08bdb 100644 --- a/LICENSE-MIT +++ b/LICENSE-MIT @@ -1,4 +1,4 @@ -Copyright 2023 Gergő Sályi +Copyright 2023 Gergő Sályi and multibg-sway contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal diff --git a/PKGBUILD b/PKGBUILD index 125299e..de2ce07 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,8 @@ pkgrel=1 pkgdesc='Set a different wallpaper for the background of each Sway workspace' arch=('x86_64' 'i686' 'pentium4' 'armv7h' 'aarch64') url="https://github.com/gergo-salyi/multibg-sway" -license=('MIT' 'Apache') +# Direct source files are MIT OR Apache-2.0 but have GPL-3.0-or-later dependencies +license=('GPL-3.0-or-later') depends=('dav1d>=1.3.0' 'gcc-libs' 'glibc') makedepends=('cargo') optdepends=( @@ -35,5 +36,4 @@ package() { cd "$pkgname-$pkgver" install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md" - install -Dm644 "LICENSE-MIT" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE-MIT" } diff --git a/README.md b/README.md index 62a1b96..c19f036 100644 --- a/README.md +++ b/README.md @@ -100,3 +100,9 @@ Please include a verbose log from you terminal by running with `RUST_BACKTRACE=1 - [hyprpaper](https://github.com/hyprwm/hyprpaper) - [mpvpaper](https://github.com/GhostNaN/mpvpaper) - [oguri](https://github.com/vilhalmer/oguri) + +## License + +Source files in this project are distributed under MIT OR Apache-2.0 + +Objects resulting from building this project might be under GPL-3.0-or-later due to licenses of statically linked dependencies. Open an issue if you need compile time features gating such dependencies. diff --git a/scripts/cargo-tree-licences-not-mit.sh b/scripts/cargo-tree-licences-not-mit.sh new file mode 100755 index 0000000..2dde08c --- /dev/null +++ b/scripts/cargo-tree-licences-not-mit.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -euo pipefail +cargo tree --prefix none --format '{p} {l}' | grep --invert-match -e 'MIT'