void-packages/srcpkgs/spdx-licenses-list/template

46 lines
1.1 KiB
Bash

# Template file for 'spdx-licenses-list'
# common/travis/license.lst should be updated in sync with this package
# run common/scripts/check-custom-licenses after updating to find
# license fields in packages that can have 'custom:' removed
pkgname=spdx-licenses-list
version=3.24.0
revision=1
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=dcf8781b52ec224aaf67e715ada5a2a002dfaaa8a702a98b4d0945da20081c40
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
}
}