void-packages/srcpkgs/spdx-licenses-list/template
mobinmob 0f6b6e5c8b spdx-licenses-list: update to 3.15.
Also:
- update common/travis/license.lst.
2021-11-18 18:35:02 +01:00

45 lines
1 KiB
Bash

# Template file for 'spdx-licenses-list'
# common/travis/license.lst should be updated in sync with this package
pkgname=spdx-licenses-list
version=3.15
revision=1
wrksrc="license-list-data-${version}"
short_desc="SPDX License List"
maintainer="mobinmob <mobinmob@disroot.org>"
license="CC-BY-3.0"
homepage="https://spdx.org"
distfiles="https://github.com/spdx/license-list-data/archive/v${version}.tar.gz"
checksum=728d7ad11ce13e81cb2346b6fda7168dbdc9d3c5592e8142ae910b70b6cb79b7
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() {
short_desc="SPDX licenses in plain text"
pkg_install() {
vmkdir usr/share/spdx
vcopy text usr/share/spdx
}
}
spdx-licenses-json_package() {
short_desc="SPDX licenses in JSON"
pkg_install() {
vmkdir usr/share/spdx
vcopy json usr/share/spdx
}
}
spdx-licenses-html_package() {
short_desc="SPDX licenses in HTML"
pkg_install() {
vmkdir usr/share/spdx
vcopy html usr/share/spdx
}
}