Browse Source

git subrepo clone gitea@gitea.artixlinux.org:packagesD/docbook-sgml31.git

subrepo:
  subdir:   "docbook-sgml31"
  merged:   "2a56161"
upstream:
  origin:   "gitea@gitea.artixlinux.org:packagesD/docbook-sgml31.git"
  branch:   "master"
  commit:   "2a56161"
git-subrepo:
  version:  "0.4.0"
  origin:   "???"
  commit:   "???"
master
artoo 2 years ago
parent
commit
b69a1d6c54
Signed by: artoo GPG Key ID: 3292CD0BB0DB310B
  1. 5
      docbook-sgml31/.artixlinux/agent.yaml
  2. 33
      docbook-sgml31/.gitignore
  3. 12
      docbook-sgml31/.gitrepo
  4. 3
      docbook-sgml31/Jenkinsfile
  5. 2
      docbook-sgml31/README.md
  6. 37
      docbook-sgml31/repos/extra-any/PKGBUILD
  7. 42
      docbook-sgml31/repos/extra-any/docbook-sgml31.install
  8. 37
      docbook-sgml31/trunk/PKGBUILD
  9. 42
      docbook-sgml31/trunk/docbook-sgml31.install

5
docbook-sgml31/.artixlinux/agent.yaml

@ -0,0 +1,5 @@
%YAML 1.2
---
label: master

33
docbook-sgml31/.gitignore

@ -0,0 +1,33 @@
# ---> ArchLinuxPackages
*.tar
*.tar.*
*.jar
*.exe
*.msi
*.zip
*.tgz
*.log
*.log.*
*.sig
pkg/
src/
# ---> Archives
*.7z
*.rar
*.gz
*.bzip
*.bz2
*.xz
*.lzma
*.cab
# ---> systemd
*.service
*.socket
*.timer
# ---> snap
*.snap

12
docbook-sgml31/.gitrepo

@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = gitea@gitea.artixlinux.org:packagesD/docbook-sgml31.git
branch = master
commit = 2a561611b7b4f3e064cb999e67ca7e09fceecf06
parent = 15fa8e81123fa83ee2e1debc9f29018e9ba56add
method = merge
cmdver = 0.4.0

3
docbook-sgml31/Jenkinsfile

@ -0,0 +1,3 @@
@Library('artix-ci') import org.artixlinux.RepoPackage
PackagePipeline(new RepoPackage(this))

2
docbook-sgml31/README.md

@ -0,0 +1,2 @@
# docbook-sgml31

37
docbook-sgml31/repos/extra-any/PKGBUILD

@ -0,0 +1,37 @@
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Andreas B. Wagner <AndreasBWagner@gmail.com>
pkgname=docbook-sgml31
pkgver=3.1
pkgrel=3
pkgdesc="Legacy docbook-sgml"
arch=('any')
url='http://www.docbook.org/sgml/'
license=('MIT')
depends=('sgml-common')
install=$pkgname.install
source=("http://www.docbook.org/sgml/${pkgver}/docbk31.zip")
sha256sums=('20261d2771b9a052abfa3d8fab1aa62be05791a010281c566f9073bf0e644538')
build() {
cd "$srcdir"
# This command removes the ENT definitions from the catalog file.
# This command replaces the DTDDECL catalog entry, which is not supported by Linux SGML tools,
# with the SGMLDECL catalog entry.
sed -i -e '/ISO 8879/d' \
-e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \
docbook.cat
}
package() {
cd "$srcdir"
local DTDDIR="usr/share/sgml/docbook-sgml-${pkgver}"
install -dm755 "$pkgdir/$DTDDIR"
install -m644 docbook.cat "$pkgdir/$DTDDIR/catalog"
install -m644 *.dtd *.mod *.dcl "$pkgdir/$DTDDIR"
}

42
docbook-sgml31/repos/extra-any/docbook-sgml31.install

@ -0,0 +1,42 @@
# arg 1: the new package version
post_install() {
add_catalog "${1%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
remove_catalog "${2%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
add_catalog "${1%-*}"
}
# arg 1: the old package version
pre_remove() {
remove_catalog "${1%-*}"
}
add_catalog() {
install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
/usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
/etc/sgml/sgml-docbook.cat > /dev/null 2>&1
}
remove_catalog() {
install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
/usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
/etc/sgml/sgml-docbook.cat > /dev/null 2>&1
}
op=$1
shift
$op "$@"
# vim:set syntax=sh ts=4 sw=4 noet:

37
docbook-sgml31/trunk/PKGBUILD

@ -0,0 +1,37 @@
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
# Contributor: Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: Andreas B. Wagner <AndreasBWagner@gmail.com>
pkgname=docbook-sgml31
pkgver=3.1
pkgrel=3
pkgdesc="Legacy docbook-sgml"
arch=('any')
url='http://www.docbook.org/sgml/'
license=('MIT')
depends=('sgml-common')
install=$pkgname.install
source=("http://www.docbook.org/sgml/${pkgver}/docbk31.zip")
sha256sums=('20261d2771b9a052abfa3d8fab1aa62be05791a010281c566f9073bf0e644538')
build() {
cd "$srcdir"
# This command removes the ENT definitions from the catalog file.
# This command replaces the DTDDECL catalog entry, which is not supported by Linux SGML tools,
# with the SGMLDECL catalog entry.
sed -i -e '/ISO 8879/d' \
-e 's|DTDDECL "-//OASIS//DTD DocBook V3.1//EN"|SGMLDECL|g' \
docbook.cat
}
package() {
cd "$srcdir"
local DTDDIR="usr/share/sgml/docbook-sgml-${pkgver}"
install -dm755 "$pkgdir/$DTDDIR"
install -m644 docbook.cat "$pkgdir/$DTDDIR/catalog"
install -m644 *.dtd *.mod *.dcl "$pkgdir/$DTDDIR"
}

42
docbook-sgml31/trunk/docbook-sgml31.install

@ -0,0 +1,42 @@
# arg 1: the new package version
post_install() {
add_catalog "${1%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
pre_upgrade() {
remove_catalog "${2%-*}"
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
add_catalog "${1%-*}"
}
# arg 1: the old package version
pre_remove() {
remove_catalog "${1%-*}"
}
add_catalog() {
install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
/usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
install-catalog --add /etc/sgml/sgml-docbook-dtd-$1.cat \
/etc/sgml/sgml-docbook.cat > /dev/null 2>&1
}
remove_catalog() {
install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
/usr/share/sgml/docbook-sgml-$1/catalog > /dev/null 2>&1
install-catalog --remove /etc/sgml/sgml-docbook-dtd-$1.cat \
/etc/sgml/sgml-docbook.cat > /dev/null 2>&1
}
op=$1
shift
$op "$@"
# vim:set syntax=sh ts=4 sw=4 noet:
Loading…
Cancel
Save