docbook: update license

This commit is contained in:
Đoàn Trần Công Danh 2025-08-29 20:54:52 +07:00
parent 83978f5705
commit a2f0f63f4c

View file

@ -1,11 +1,11 @@
# Template file for 'docbook' # Template file for 'docbook'
pkgname=docbook pkgname=docbook
version=4.5 version=4.5
revision=6 revision=7
depends="xmlcatmgr sgml-common" depends="xmlcatmgr sgml-common"
short_desc="SGML DTD designed for computer documentation" short_desc="SGML DTD designed for computer documentation"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="custom:DocBook" license="DocBook-DTD"
homepage="http://www.docbook.org" homepage="http://www.docbook.org"
distfiles=" distfiles="
http://www.docbook.org/sgml/$version/docbook-$version.zip http://www.docbook.org/sgml/$version/docbook-$version.zip
@ -39,17 +39,6 @@ sgml_entries="
do_extract() { do_extract() {
vsrcextract --no-strip-components docbook-${version}.zip vsrcextract --no-strip-components docbook-${version}.zip
sed -n '
/Copyright/,/warranty[.]/{
s/<!--//
s/^ *//
s/^[$]Id:.*[$]//
H
x
/^\n$/!{g;p;}
g
}
' docbook.dtd >LICENSE
} }
do_install() { do_install() {
@ -67,5 +56,4 @@ do_install() {
vsrcextract -C "${dir}" "docbk${vernodot}.zip" vsrcextract -C "${dir}" "docbk${vernodot}.zip"
install -m644 ${FILESDIR}/catalog${vernodot} ${dir}/catalog install -m644 ${FILESDIR}/catalog${vernodot} ${dir}/catalog
done done
vlicense LICENSE
} }