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