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
# Maintainer: Dan McGee
# Contributor: Morten Linderud
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