From 8a2dc1c478f2cb786fea656f8540316753900319 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Tue, 9 Apr 2019 05:57:36 -0300 Subject: [PATCH] New package: spdx-licenses-list-3.5 --- srcpkgs/spdx-licenses-html | 1 + srcpkgs/spdx-licenses-json | 1 + srcpkgs/spdx-licenses-list/template | 47 +++++++++++++++++++++++++++++ srcpkgs/spdx-licenses-text | 1 + 4 files changed, 50 insertions(+) create mode 120000 srcpkgs/spdx-licenses-html create mode 120000 srcpkgs/spdx-licenses-json create mode 100644 srcpkgs/spdx-licenses-list/template create mode 120000 srcpkgs/spdx-licenses-text diff --git a/srcpkgs/spdx-licenses-html b/srcpkgs/spdx-licenses-html new file mode 120000 index 00000000000..7d436d9e749 --- /dev/null +++ b/srcpkgs/spdx-licenses-html @@ -0,0 +1 @@ +spdx-licenses-list \ No newline at end of file diff --git a/srcpkgs/spdx-licenses-json b/srcpkgs/spdx-licenses-json new file mode 120000 index 00000000000..7d436d9e749 --- /dev/null +++ b/srcpkgs/spdx-licenses-json @@ -0,0 +1 @@ +spdx-licenses-list \ No newline at end of file diff --git a/srcpkgs/spdx-licenses-list/template b/srcpkgs/spdx-licenses-list/template new file mode 100644 index 00000000000..d808e87f698 --- /dev/null +++ b/srcpkgs/spdx-licenses-list/template @@ -0,0 +1,47 @@ +# Template file for 'spdx-licenses-list' +pkgname=spdx-licenses-list +version=3.5 +revision=1 +archs=noarch +wrksrc="license-list-data-${version}" +short_desc="SPDX License List" +maintainer="maxice8 " +license="GPL-3.0-or-later" +homepage="https://spdx.org" +distfiles="https://github.com/spdx/license-list-data/archive/v${version}.tar.gz" +checksum=5666aff8c3a7116970122c39ec41fd40f2076f89826266d3df4f59629ee71a61 + +do_install() { + vmkdir usr/share/spdx + for i in text/*.txt; do + i=${i##*/} + echo ${i%.*} >> ${DESTDIR}/usr/share/spdx/license.lst + done +} + +spdx-licenses-text_package() { + archs=noarch + short_desc="SPDX licenses in plain text" + pkg_install() { + vmkdir usr/share/spdx + vcopy text usr/share/spdx + } +} + +spdx-licenses-json_package() { + archs=noarch + short_desc="SPDX licenses in JSON" + pkg_install() { + vmkdir usr/share/spdx + vcopy json usr/share/spdx + } +} + +spdx-licenses-html_package() { + archs=noarch + short_desc="SPDX licenses in HTML" + pkg_install() { + vmkdir usr/share/spdx + vcopy html usr/share/spdx + } +} diff --git a/srcpkgs/spdx-licenses-text b/srcpkgs/spdx-licenses-text new file mode 120000 index 00000000000..7d436d9e749 --- /dev/null +++ b/srcpkgs/spdx-licenses-text @@ -0,0 +1 @@ +spdx-licenses-list \ No newline at end of file