new: move git and depends from desktop pool

This commit is contained in:
ngn 2024-08-21 04:25:55 +03:00
parent 224ccc357f
commit 927805075a
19 changed files with 405 additions and 0 deletions

3
src/asciidoc/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/asciidoc/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 10.2.0
First version

18
src/asciidoc/pkg.sh Normal file
View File

@ -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}"
}

3
src/docbook-xml/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

View File

@ -0,0 +1,2 @@
# 4.5
First version

137
src/docbook-xml/pkg.sh Normal file
View File

@ -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
}

3
src/docbook-xsl-nons/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

View File

@ -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

View File

@ -0,0 +1,2 @@
# 1.79.2
First version

View File

@ -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
}

3
src/git/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/git/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 2.41.0
First version

35
src/git/pkg.sh Normal file
View File

@ -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}"
}

3
src/sgml-common/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

View File

@ -0,0 +1,2 @@
# 0.6.3
First version

35
src/sgml-common/pkg.sh Normal file
View File

@ -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}
}

3
src/xmlto/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/xmlto/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 0.0.28
First version

20
src/xmlto/pkg.sh Normal file
View File

@ -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}"
}