[arch-dev-public] Using SPDX License list as identifiers

Morten Linderud foxboron at archlinux.org
Mon Oct 28 14:45:33 UTC 2019


On Tue, Oct 22, 2019 at 09:15:17PM +0200, Morten Linderud via arch-dev-public wrote:
> Dropping these files into `/usr/share/licenses/common` seems like the easiest
> solution. But our current structure is `/usr/share/licenses/$LicenseName/license.txt`,
> with a few exceptions such as CCPL. Is there any reason for this structure?

I have added a suggested PKGBUILD for the SPDX license package with the
assumption that we don't want the current structure. I'd really appreciate some
input as to why we have the current structure.


# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Dan McGee <dan at archlinux.org>
# Contributor: Morten Linderud <foxboron at archlinux.org>

pkgname=licenses
pkgver=20191028
_spdx_version=3.7
pkgrel=1
pkgdesc='Standard licenses distribution package, based of SPDX'
arch=('any')
license=('CC0-1.0')
url='https://spdx.org/licenses/'
source=("$pkgname-$pkgver.tar.gz::https://github.com/spdx/license-list-data/archive/v${_spdx_version}.tar.gz")
sha256sums=('3f3a121ad331261d0997b3c6526d0db030d8b1468afce862921eaea22099f909')

package() {
  cd "license-list-data-$_spdx_version/text"
  rm deprecated_*
  install -dm644 "$pkgdir/usr/share/licenses/common"
  mv * "$pkgdir/usr/share/licenses/common"
}

-- 
Morten Linderud
PGP: 9C02FF419FECBE16
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-dev-public/attachments/20191028/8fb4ff61/attachment.sig>


More information about the arch-dev-public mailing list