diff --git a/src/asciidoc/.gitignore b/src/asciidoc/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/asciidoc/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/asciidoc/changes.md b/src/asciidoc/changes.md new file mode 100644 index 0000000..3cb0e56 --- /dev/null +++ b/src/asciidoc/changes.md @@ -0,0 +1,2 @@ +# 10.2.0 +First version diff --git a/src/asciidoc/pkg.sh b/src/asciidoc/pkg.sh new file mode 100644 index 0000000..1253409 --- /dev/null +++ b/src/asciidoc/pkg.sh @@ -0,0 +1,18 @@ +NAME="asciidoc" +DESC="Text based document generation" +VERSION="10.2.0" + +FILES=("https://files.pythonhosted.org/packages/source/a/asciidoc/asciidoc-${VERSION}.tar.gz") +HASHES=("ecac3af818f7a65596efc6e243b520a0") + +DEPENDS=("python3" "docbook-xsl-nons" "libxslt") + +PACKAGE() { + tar xf "${NAME}-${VERSION}.tar.gz" + cd "${NAME}-${VERSION}" + + python3 -m build --wheel --no-isolation + python3 -m installer --destdir="${ROOTDIR}" dist/*.whl + + cd .. && rm -rf "${NAME}-${VERSION}" +} diff --git a/src/docbook-xml/.gitignore b/src/docbook-xml/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/docbook-xml/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/docbook-xml/changes.md b/src/docbook-xml/changes.md new file mode 100644 index 0000000..c8c2182 --- /dev/null +++ b/src/docbook-xml/changes.md @@ -0,0 +1,2 @@ +# 4.5 +First version diff --git a/src/docbook-xml/pkg.sh b/src/docbook-xml/pkg.sh new file mode 100644 index 0000000..0bc33e5 --- /dev/null +++ b/src/docbook-xml/pkg.sh @@ -0,0 +1,137 @@ +NAME="docbook-xml" +DESC="Contains document type definitions for verification of XML data files against the DocBook rule set" +VERSION="4.5" + +FILES=("https://www.docbook.org/xml/${VERSION}/docbook-xml-${VERSION}.zip") +HASHES=("03083e288e87a7e829e437358da7ef9e") + +DEPENDS=("libxml2") +BUILD=("sgml-common") + +PACKAGE() { + mkdir "${NAME}" + mv "${NAME}-${VERSION}.zip" "${NAME}" + + cd "${NAME}" + unzip "${NAME}-${VERSION}.zip" + + install -v -d -m755 "${ROOTDIR}/usr/share/xml/docbook/xml-dtd-${VERSION}" + install -v -d -m755 "${ROOTDIR}/etc/xml" + + cp -v -af --no-preserve=ownership docbook.cat *.dtd ent/ *.mod \ + "${ROOTDIR}/usr/share/xml/docbook/xml-dtd-${VERSION}" + + cd .. && rm -rf "${NAME}" +} + +INSTALL(){ + if [ ! -e /etc/xml/docbook ]; then + xmlcatalog --noout --create /etc/xml/docbook + fi + + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD DocBook XML V4.5//EN" \ + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" \ + /etc/xml/docbook + + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD DocBook XML CALS Table Model V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/calstblx.dtd" \ + /etc/xml/docbook + + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD XML Exchange Table Model 19990315//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/soextblx.dtd" \ + /etc/xml/docbook + + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML Information Pool V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbpoolx.mod" \ + /etc/xml/docbook + + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML Document Hierarchy V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbhierx.mod" \ + /etc/xml/docbook + + xmlcatalog --noout --add "public" \ + "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/htmltblx.mod" \ + /etc/xml/docbook + + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook XML Notations V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbnotnx.mod" \ + /etc/xml/docbook + + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook XML Character Entities V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbcentx.mod" \ + /etc/xml/docbook + + xmlcatalog --noout --add "public" \ + "-//OASIS//ENTITIES DocBook XML Additional General Entities V4.5//EN" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5/dbgenent.mod" \ + /etc/xml/docbook + + xmlcatalog --noout --add "rewriteSystem" \ + "http://www.oasis-open.org/docbook/xml/4.5" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ + /etc/xml/docbook + + xmlcatalog --noout --add "rewriteURI" \ + "http://www.oasis-open.org/docbook/xml/4.5" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ + /etc/xml/docbook + + if [ ! -e /etc/xml/catalog ]; then + xmlcatalog --noout --create /etc/xml/catalog + fi + + xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//ENTITIES DocBook XML" \ + "file:///etc/xml/docbook" \ + /etc/xml/catalog + + xmlcatalog --noout --add "delegatePublic" \ + "-//OASIS//DTD DocBook XML" \ + "file:///etc/xml/docbook" \ + /etc/xml/catalog + + xmlcatalog --noout --add "delegateSystem" \ + "http://www.oasis-open.org/docbook/" \ + "file:///etc/xml/docbook" \ + /etc/xml/catalog + + xmlcatalog --noout --add "delegateURI" \ + "http://www.oasis-open.org/docbook/" \ + "file:///etc/xml/docbook" \ + /etc/xml/catalog + + for DTDVERSION in 4.1.2 4.2 4.3 4.4; do + xmlcatalog --noout --add "public" \ + "-//OASIS//DTD DocBook XML V$DTDVERSION//EN" \ + "http://www.oasis-open.org/docbook/xml/$DTDVERSION/docbookx.dtd" \ + /etc/xml/docbook + + xmlcatalog --noout --add "rewriteSystem" \ + "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ + /etc/xml/docbook + + xmlcatalog --noout --add "rewriteURI" \ + "http://www.oasis-open.org/docbook/xml/$DTDVERSION" \ + "file:///usr/share/xml/docbook/xml-dtd-4.5" \ + /etc/xml/docbook + + xmlcatalog --noout --add "delegateSystem" \ + "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ + "file:///etc/xml/docbook" \ + /etc/xml/catalog + + xmlcatalog --noout --add "delegateURI" \ + "http://www.oasis-open.org/docbook/xml/$DTDVERSION/" \ + "file:///etc/xml/docbook" \ + /etc/xml/catalog + done +} diff --git a/src/docbook-xsl-nons/.gitignore b/src/docbook-xsl-nons/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/docbook-xsl-nons/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/docbook-xsl-nons/catalog b/src/docbook-xsl-nons/catalog new file mode 100644 index 0000000..2627404 --- /dev/null +++ b/src/docbook-xsl-nons/catalog @@ -0,0 +1,34 @@ +if [ ! -d /etc/xml ]; then install -v -m755 -d /etc/xml; fi && +if [ ! -f /etc/xml/catalog ]; then + xmlcatalog --noout --create /etc/xml/catalog +fi && + +xmlcatalog --noout --add "rewriteSystem" \ + "https://cdn.docbook.org/release/xsl-nons/1.79.2" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog && + +xmlcatalog --noout --add "rewriteURI" \ + "https://cdn.docbook.org/release/xsl-nons/1.79.2" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog && + +xmlcatalog --noout --add "rewriteSystem" \ + "https://cdn.docbook.org/release/xsl-nons/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog && + +xmlcatalog --noout --add "rewriteURI" \ + "https://cdn.docbook.org/release/xsl-nons/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog && + +xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog && + +xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog diff --git a/src/docbook-xsl-nons/changes.md b/src/docbook-xsl-nons/changes.md new file mode 100644 index 0000000..70b49a0 --- /dev/null +++ b/src/docbook-xsl-nons/changes.md @@ -0,0 +1,2 @@ +# 1.79.2 +First version diff --git a/src/docbook-xsl-nons/pkg.sh b/src/docbook-xsl-nons/pkg.sh new file mode 100644 index 0000000..e97b734 --- /dev/null +++ b/src/docbook-xsl-nons/pkg.sh @@ -0,0 +1,96 @@ +NAME="docbook-xsl-nons" +DESC="Contains XSL stylesheets" +VERSION="1.79.2" +FILES=( + "https://github.com/docbook/xslt10-stylesheets/releases/download/release/${VERSION}/docbook-xsl-nons-${VERSION}.tar.bz2" + "https://github.com/docbook/xslt10-stylesheets/releases/download/release/${VERSION}/docbook-xsl-doc-${VERSION}.tar.bz2" + "docbook-xsl-nons-${VERSION}-stack_fix-1.patch" +) +HASHES=( + "2666d1488d6ced1551d15f31d7ed8c38" + "a92c39715c54949ba9369add1809527b8f155b7e2a2b2e30cb4b39ee715f2e30" +) +DEPENDS=("libxml2" "docbook-xml") + +PACKAGE() { + tar xf "${NAME}-${VERSION}.tar.bz2" + cd "${NAME}-${VERSION}" + + patch -Np1 -i "../docbook-xsl-nons-${VERSION}-stack_fix-1.patch" + tar -xf "../docbook-xsl-doc-${VERSION}.tar.bz2" --strip-components=1 + + install -v -m755 -d "${ROOTDIR}/usr/share/xml/docbook/xsl-stylesheets-nons-${VERSION}" + cp -v -R VERSION assembly common eclipse epub epub3 extensions fo \ + highlighting html htmlhelp images javahelp lib manpages params \ + profiling roundtrip slides template tests tools webhelp website \ + xhtml xhtml-1_1 xhtml5 \ + "${ROOTDIR}/usr/share/xml/docbook/xsl-stylesheets-nons-${VERSION}" + ln -s VERSION "${ROOTDIR}/usr/share/xml/docbook/xsl-stylesheets-nons-${VERSION}/VERSION.xsl" + install -v -m644 -D README \ + "${ROOTDIR}/usr/share/doc/docbook-xsl-nons-${VERSION}/README.txt" + install -v -m644 RELEASE-NOTES* NEWS* \ + "${ROOTDIR}/usr/share/doc/docbook-xsl-nons-${VERSION}" + cp -v -R doc/* "${ROOTDIR}/usr/share/doc/docbook-xsl-nons-${VERSION}" + + cd .. && rm -rf "${NAME}-${VERSION}" +} + +INSTALL(){ + if [ ! -d /etc/xml ]; then + install -v -m755 -d /etc/xml + fi + + if [ ! -f /etc/xml/catalog ]; then + xmlcatalog --noout --create /etc/xml/catalog + fi + + xmlcatalog --noout --add "rewriteSystem" \ + "http://cdn.docbook.org/release/xsl-nons/1.79.2" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog + + xmlcatalog --noout --add "rewriteSystem" \ + "https://cdn.docbook.org/release/xsl-nons/1.79.2" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog + + xmlcatalog --noout --add "rewriteURI" \ + "http://cdn.docbook.org/release/xsl-nons/1.79.2" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog + + xmlcatalog --noout --add "rewriteURI" \ + "https://cdn.docbook.org/release/xsl-nons/1.79.2" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog + + xmlcatalog --noout --add "rewriteSystem" \ + "http://cdn.docbook.org/release/xsl-nons/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog + + xmlcatalog --noout --add "rewriteSystem" \ + "https://cdn.docbook.org/release/xsl-nons/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog + + xmlcatalog --noout --add "rewriteURI" \ + "http://cdn.docbook.org/release/xsl-nons/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog + + xmlcatalog --noout --add "rewriteURI" \ + "https://cdn.docbook.org/release/xsl-nons/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog + + xmlcatalog --noout --add "rewriteSystem" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog + + xmlcatalog --noout --add "rewriteURI" \ + "http://docbook.sourceforge.net/release/xsl/current" \ + "/usr/share/xml/docbook/xsl-stylesheets-nons-1.79.2" \ + /etc/xml/catalog +} diff --git a/src/git/.gitignore b/src/git/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/git/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/git/changes.md b/src/git/changes.md new file mode 100644 index 0000000..79cc79d --- /dev/null +++ b/src/git/changes.md @@ -0,0 +1,2 @@ +# 2.41.0 +First version diff --git a/src/git/pkg.sh b/src/git/pkg.sh new file mode 100644 index 0000000..1ff5b3f --- /dev/null +++ b/src/git/pkg.sh @@ -0,0 +1,35 @@ +NAME="git" +DESC="Free and open source, distributed version control system" +VERSION="2.41.0" + +FILES=( + "https://www.kernel.org/pub/software/scm/git/git-${VERSION}.tar.xz" + "https://www.kernel.org/pub/software/scm/git/git-manpages-${VERSION}.tar.xz" +) +HASHES=( + "c1f58a12b891ad73927b8e4a3aa29c7b" + "bc7a4c944492c76fc3cd766ce22e826d0241e43792c611d4fdc068e0df545877" +) + +DEPENDS=( + "curl" "expat" "grep" + "shadow" "zlib" "pcre2" +) +BUILD=("xmlto" "asciidoc" "python3") + +PACKAGE() { + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" + + ./configure --prefix=/usr \ + --with-gitconfig=/etc/gitconfig \ + --with-python=python3 + make + make DESTDIR="${ROOTDIR}" perllibdir="/usr/lib/perl5/5.38/site_perl" install + + install -Ddm755 "${ROOTDIR}/usr/share/man" + tar -xf "../git-manpages-${VERSION}.tar.xz" \ + -C "${ROOTDIR}/usr/share/man" --no-same-owner --no-overwrite-dir + + cd .. && rm -rf "${NAME}-${VERSION}" +} diff --git a/src/sgml-common/.gitignore b/src/sgml-common/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/sgml-common/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/sgml-common/changes.md b/src/sgml-common/changes.md new file mode 100644 index 0000000..379b7de --- /dev/null +++ b/src/sgml-common/changes.md @@ -0,0 +1,2 @@ +# 0.6.3 +First version diff --git a/src/sgml-common/pkg.sh b/src/sgml-common/pkg.sh new file mode 100644 index 0000000..b9cf678 --- /dev/null +++ b/src/sgml-common/pkg.sh @@ -0,0 +1,35 @@ +NAME="sgml-common" +DESC="Contains install-catalog which is useful for creating and maintaining centralized SGML catalogs" +VERSION="0.6.3" + +FILES=( + "https://sourceware.org/ftp/docbook-tools/new-trials/SOURCES/sgml-common-${VERSION}.tgz" + "https://www.linuxfromscratch.org/patches/blfs/12.0/sgml-common-${VERSION}-manpage-1.patch" +) +HASHES=( + "103c9828f24820df86e55e7862e28974" + "50d93af704a0869faf8fedf5d23b1a9f90fff6499f4c11cf4addb5e460b7b58b" +) + +DEPENDS=("bash") + +PACKAGE() { + tar xf "${NAME}-${VERSION}.tgz" + cd "${NAME}-${VERSION}" + + patch -Np1 -i "../sgml-common-${VERSION}-manpage-1.patch" + autoreconf -f -i + + ./configure --prefix=/usr --sysconfdir=/etc + make + make DESTDIR="${ROOTDIR}" install + make DESTDIR="${ROOTDIR}" docdir="/usr/share/doc" install + + install-catalog --add "/etc/sgml/sgml-ent.cat" \ + "${ROOTDIR}/usr/share/sgml/sgml-iso-entities-8879.1986/catalog" + + install-catalog --add "/etc/sgml/sgml-docbook.cat" \ + "${ROOTDIR}/etc/sgml/sgml-ent.cat" + + cd .. && rm -rf ${NAME}-${VERSION} +} diff --git a/src/xmlto/.gitignore b/src/xmlto/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/xmlto/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/xmlto/changes.md b/src/xmlto/changes.md new file mode 100644 index 0000000..bf4c3e3 --- /dev/null +++ b/src/xmlto/changes.md @@ -0,0 +1,2 @@ +# 0.0.28 +First version diff --git a/src/xmlto/pkg.sh b/src/xmlto/pkg.sh new file mode 100644 index 0000000..a0ed40e --- /dev/null +++ b/src/xmlto/pkg.sh @@ -0,0 +1,20 @@ +NAME="xmlto" +DESC="A front-end to a XSL toolchain" +VERSION="0.0.28" + +FILES=("https://releases.pagure.org/xmlto/xmlto-${VERSION}.tar.bz2") +HASHES=("93bab48d446c826399d130d959fe676f") + +DEPENDS=("libxslt") +BUILD=("docbook-xsl-nons") + +PACKAGE() { + tar xf "${NAME}-${VERSION}.tar.bz2" + cd "${NAME}-${VERSION}" + + LINKS="/usr/bin/links" ./configure --prefix=/usr + make + make DESTDIR="${ROOTDIR}" install + + cd .. && rm -rf "${NAME}-${VERSION}" +}