fix: add sgml-common install script

This commit is contained in:
ngn 2024-08-21 04:53:33 +03:00
parent 8f32c501e3
commit a52ed8d9fb
5 changed files with 28 additions and 18 deletions

View File

@ -8,6 +8,7 @@ FILES=(
)
HASHES=(
"2666d1488d6ced1551d15f31d7ed8c38"
"62375ca864fc198cb2b17d98209d0b8c"
"a92c39715c54949ba9369add1809527b8f155b7e2a2b2e30cb4b39ee715f2e30"
)
DEPENDS=("libxml2" "docbook-xml")

View File

@ -1,2 +1,5 @@
# 2.44.0
Updated to a newer upstream release
# 2.41.0
First version

View File

@ -2,14 +2,8 @@ NAME="git"
DESC="Free and open source, distributed version control system"
VERSION="2.44.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=(
"7e4eb7c45e9ba7c90fa51deeea49732f"
"bc7a4c944492c76fc3cd766ce22e826d0241e43792c611d4fdc068e0df545877"
)
FILES=("https://www.kernel.org/pub/software/scm/git/git-${VERSION}.tar.xz")
HASHES=("7e4eb7c45e9ba7c90fa51deeea49732f")
DEPENDS=(
"curl" "expat" "grep"
@ -25,11 +19,10 @@ PACKAGE() {
--with-gitconfig=/etc/gitconfig \
--with-python=python3
make
make DESTDIR="${ROOTDIR}" perllibdir="/usr/lib/perl5/5.38/site_perl" install
make man
install -Ddm755 "${ROOTDIR}/usr/share/man"
tar -xf "../git-manpages-${VERSION}.tar.xz" \
-C "${ROOTDIR}/usr/share/man" --no-same-owner --no-overwrite-dir
make DESTDIR="${ROOTDIR}" perllibdir="/usr/lib/perl5/5.38/site_perl" install
make DESTDIR="${ROOTDIR}" install-man
cd .. && rm -rf "${NAME}-${VERSION}"
}

View File

@ -25,11 +25,23 @@ PACKAGE() {
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}
}
INSTALL(){
# remove old catalogs
install-catalog --remove /etc/sgml/sgml-ent.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
install-catalog --remove /etc/sgml/sgml-docbook.cat \
/etc/sgml/sgml-ent.cat
# install new ones
install-catalog --add /etc/sgml/sgml-ent.cat \
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
install-catalog --add /etc/sgml/sgml-docbook.cat \
/etc/sgml/sgml-ent.cat
exit 0
}

View File

@ -12,6 +12,7 @@ PACKAGE() {
tar xf "${NAME}-${VERSION}.tar.bz2"
cd "${NAME}-${VERSION}"
export CFLAGS="${CFLAGS} -std=gnu89"
LINKS="/usr/bin/links" ./configure --prefix=/usr
make
make DESTDIR="${ROOTDIR}" install