git » licenses.git » commit 60d63fd

upgpkg: 20230903-1

author David Runge
2023-09-03 16:25:18 UTC
committer David Runge
2023-09-03 16:25:18 UTC
parent bbd8b1c10c0032f49f681f03d77e44d2f8b415d4

upgpkg: 20230903-1

Rebuild to add standardized SPDX license files tracked in https://github.com/spdx/license-list-data to
/usr/share/licenses/spdx as described in https://rfc.archlinux.page/0016-spdx-license-identifiers/

This adds all Creative Common 4.0 licenses as well (https://bugs.archlinux.org/task/78080).

Now legacy license files remain in their previous location under /usr/share/licenses/common for now.

PKGBUILD +114 -3

diff --git a/PKGBUILD b/PKGBUILD
index 65bfbca..23e3b1e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,10 @@
 # Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
 # Contributor: Dan McGee <dan@archlinux.org>
 
+_upstream_name=license-list-data
+_upstream_version=3.21
 pkgname=licenses
-pkgver=20230729
+pkgver=20230903
 pkgrel=1
 pkgdesc="A set of common license files"
 arch=(any)
@@ -40,6 +42,7 @@ source=(
   unlicense.txt
   w3c.txt
   ZopePublicLicense.txt
+  $_upstream_name-$_upstream_version.tar.gz::https://github.com/spdx/$_upstream_name/archive/refs/tags/v$_upstream_version.tar.gz
 )
 sha512sums=('3568a76677f3d55dbbc7fc33c4073b4714cc6f68d92cd842a9ca2b230e8bd2140e59c3fc3cce34be34ffed78d75ab6e9d991ba59bf7c4addde7fb96648d3375d'
             '98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8'
@@ -70,7 +73,8 @@ sha512sums=('3568a76677f3d55dbbc7fc33c4073b4714cc6f68d92cd842a9ca2b230e8bd2140e5
             '767242ed40e94d11521fba9e2a248ae998276f57b7b34e94d91ac392add2f835d8e0c01d1b13ce1def7782dca5dbfdbef37ea9cb802b51561718d299a3b87818'
             'aa647966e7fb62ffcd7bfc1e56a8ebe38e8384a36c14e07fec4ccf3be91ffa1b3bbd9798901fa7956056c26d124f067582366bdb9581db1f742291c86e64e39d'
             '5cd651f40ea91397774d2bad8dcfdac0354d5930d892c07908caf6127eb8ee1255744959d51b9a756efa588aefce49d34c9764844282a711b50602295f8a2b3a'
-            '541777a015eb17bfd2dc07f5fb3a9aba950ded5bd0f53a80c52d6f4e2cb85a28a94294dbba1ca54560d0f3aadd749c94a31d67d76c1e4e6fd2255056415d52c7')
+            '541777a015eb17bfd2dc07f5fb3a9aba950ded5bd0f53a80c52d6f4e2cb85a28a94294dbba1ca54560d0f3aadd749c94a31d67d76c1e4e6fd2255056415d52c7'
+            'f271cf86b061262c8e4be8ff6ebaa98cf039f50489008880549fc6a07a0abd58626e7d388b8962b818ccaa05502fedb03fad83f2b8b0ae3dd8d6bc413067f60a')
 b2sums=('b6829320f725e3e45c4807ef5deb4738a691fb3ab146d8531b81fdbccd8376a826c8ec76165985cdf37d534f68e395652c96841ba7636c4bd34c49b7c7b3a9ec'
         '1bbdb8ea81b42a8ce554f92fd57009eef6b296472f910c5542d8a445e34bb0eee0e627a74462b9f453fe9d8853bde71fdb0eea11102bb604129753de6ecc6e06'
         '4d249b4e8d54d2d2790a3afb6cf9fe3903985fd540efdc8f26b62b50378f3ac484f7998ee1663d3f4a7cfb624ab1ce4365ac7b9c9b4fde96faa5c33dd13ab237'
@@ -100,9 +104,112 @@ b2sums=('b6829320f725e3e45c4807ef5deb4738a691fb3ab146d8531b81fdbccd8376a826c8ec7
         '0b1e59408032239cd6ea8765eabca5cafccfce94a05785824aba1dc8b37188695bf7990e3454b0f2d0b399f1a22c30de7f056e2f685fafadcef71cd1a91a6796'
         '560b95eb5bc04b02762fe9fa42554b47d161d22251f2b18f642d9c45f8bfa574fd847228935ee5244e6dbb5ee0f1fa446fe4ce6f5ff9feeb7ef3e5a91b894549'
         '41fe12d3613e61134c9b027c6e3dacacdc368e6eecc1614578850f5b784813b41cf2089418738706939db2c7fb9f17cdab005cd134a440a8aadf8b887aa8fa48'
-        '63aefec94bf37792b1b10ee4ae36a5ad54f5df1ef175eddf8528bc8fb1c5a71cf7c258f856f99a9ed4e678c9226f0ac99ea825fc68e10695e905a618c36896e8')
+        '63aefec94bf37792b1b10ee4ae36a5ad54f5df1ef175eddf8528bc8fb1c5a71cf7c258f856f99a9ed4e678c9226f0ac99ea825fc68e10695e905a618c36896e8'
+        'f4f762da3c7c286596e1e047c6e083017e2662334ab039faeb57e0947ab700e0c8540727375c2170a35bac5b983fd80e8824ebbe5b051a5e23be0f7bdcb173ed')
 
 package() {
+  local standard_licenses=(
+    AGPL-3.0-only
+    AGPL-3.0-or-later
+    Apache-2.0
+    Artistic-1.0-Perl
+    Artistic-2.0
+    BSL-1.0
+    CC0-1.0
+    CC-BY-1.0
+    CC-BY-2.0
+    CC-BY-2.5
+    CC-BY-3.0-AT
+    CC-BY-3.0
+    CC-BY-3.0-US
+    CC-BY-4.0
+    CC-BY-NC-1.0
+    CC-BY-NC-2.0
+    CC-BY-NC-2.5
+    CC-BY-NC-3.0
+    CC-BY-NC-4.0
+    CC-BY-NC-ND-1.0
+    CC-BY-NC-ND-2.0
+    CC-BY-NC-ND-2.5
+    CC-BY-NC-ND-3.0-IGO
+    CC-BY-NC-ND-3.0
+    CC-BY-NC-ND-4.0
+    CC-BY-NC-SA-1.0
+    CC-BY-NC-SA-2.0
+    CC-BY-NC-SA-2.5
+    CC-BY-NC-SA-3.0
+    CC-BY-NC-SA-4.0
+    CC-BY-ND-1.0
+    CC-BY-ND-2.0
+    CC-BY-ND-2.5
+    CC-BY-ND-3.0
+    CC-BY-ND-4.0
+    CC-BY-SA-1.0
+    CC-BY-SA-2.0
+    CC-BY-SA-2.0-UK
+    CC-BY-SA-2.1-JP
+    CC-BY-SA-2.5
+    CC-BY-SA-3.0-AT
+    CC-BY-SA-3.0
+    CC-BY-SA-4.0
+    CC-PDDC
+    CDDL-1.0
+    CDDL-1.1
+    CPL-1.0
+    EPL-1.0
+    EPL-2.0
+    GFDL-1.1-invariants-only
+    GFDL-1.1-invariants-or-later
+    GFDL-1.1-no-invariants-only
+    GFDL-1.1-no-invariants-or-later
+    GFDL-1.1-only
+    GFDL-1.1-or-later
+    GFDL-1.2-invariants-only
+    GFDL-1.2-invariants-or-later
+    GFDL-1.2-no-invariants-only
+    GFDL-1.2-no-invariants-or-later
+    GFDL-1.2-only
+    GFDL-1.2-or-later
+    GFDL-1.3-invariants-only
+    GFDL-1.3-invariants-or-later
+    GFDL-1.3-no-invariants-only
+    GFDL-1.3-no-invariants-or-later
+    GFDL-1.3-only
+    GFDL-1.3-or-later
+    GPL-2.0-only
+    GPL-2.0-or-later
+    GPL-3.0-linking-exception
+    GPL-3.0-linking-source-exception
+    GPL-3.0-only
+    GPL-3.0-or-later
+    GPL-CC-1.0
+    LGPL-2.0-only
+    LGPL-2.0-or-later
+    LGPL-2.1-only
+    LGPL-2.1-or-later
+    LGPL-3.0-linking-exception
+    LGPL-3.0-only
+    LGPL-3.0-or-later
+    LGPLLR
+    LPPL-1.0
+    LPPL-1.1
+    LPPL-1.2
+    LPPL-1.3a
+    LPPL-1.3c
+    MPL-1.0
+    MPL-1.1
+    MPL-2.0-no-copyleft-exception
+    MPL-2.0
+    PHP-3.01
+    PHP-3.0
+    PSF-2.0
+    Ruby
+    Unlicense
+    W3C
+    ZPL-1.1
+    ZPL-2.0
+    ZPL-2.1
+  )
   local _license_dir="$pkgdir/usr/share/licenses/common"
 
   install -vDm 644 agpl-3.0.txt "$_license_dir/"AGPL3/license.txt
@@ -160,6 +267,10 @@ package() {
   install -vDm 644 w3c.txt "$_license_dir/"W3C/license.txt
 
   install -vDm 644 ZopePublicLicense.txt "$_license_dir/"ZPL/license.txt
+
+  for license in "${standard_licenses[@]}"; do
+    install -vDm 644 "$_upstream_name-$_upstream_version/text/$license.txt" -t "$pkgdir/usr/share/licenses/spdx/"
+  done
 }
 
 # vim: ts=2 sw=2 et: