Browse Source

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

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

5
docbook-sgml/.artixlinux/agent.yaml

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

33
docbook-sgml/.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-sgml/.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-sgml.git
branch = master
commit = 7d0d1ed383463bc4c2417e7ee25f3e96781945fc
parent = 455e4f180684b6da89eea9d09b65789071bcf228
method = merge
cmdver = 0.4.0

3
docbook-sgml/Jenkinsfile

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

2
docbook-sgml/README.md

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

51
docbook-sgml/repos/extra-any/PKGBUILD

@ -0,0 +1,51 @@
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Andrew Fyfe <andrew@neptune-one.net>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=docbook-sgml
pkgver=4.5
pkgrel=6
pkgdesc='Document type definitions for verification of SGML data files against the DocBook rule set.'
arch=('any')
url='http://www.docbook.org/sgml/'
license=('MIT')
depends=('sgml-common')
install='docbook-sgml.install'
source=("http://www.docbook.org/sgml/${pkgver}/docbook-${pkgver}.zip")
sha256sums=('8043e514e80c6c19cb146b5d37937d1305bf3abf9b0097c36df7f70f611cdf43')
build() {
cd "$srcdir"
local DTDDIR="usr/share/sgml/docbook-sgml-$pkgver"
sed -i \
-e '/ISO 8879/d' \
-e '/gml/d' \
docbook.cat
# Add support for previous versions.
cat >> docbook.cat << "EOF"
-- Begin Single Major Version catalog changes --
PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
-- End Single Major Version catalog changes --
EOF
}
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"
}

55
docbook-sgml/repos/extra-any/docbook-sgml.install

@ -0,0 +1,55 @@
# arg 1: the new package version
pre_install() {
/bin/true
}
# 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%-*}"
}
# arg 1: the old package version
post_remove() {
/bin/true
}
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:

51
docbook-sgml/trunk/PKGBUILD

@ -0,0 +1,51 @@
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: Andrew Fyfe <andrew@neptune-one.net>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=docbook-sgml
pkgver=4.5
pkgrel=6
pkgdesc='Document type definitions for verification of SGML data files against the DocBook rule set.'
arch=('any')
url='http://www.docbook.org/sgml/'
license=('MIT')
depends=('sgml-common')
install='docbook-sgml.install'
source=("http://www.docbook.org/sgml/${pkgver}/docbook-${pkgver}.zip")
sha256sums=('8043e514e80c6c19cb146b5d37937d1305bf3abf9b0097c36df7f70f611cdf43')
build() {
cd "$srcdir"
local DTDDIR="usr/share/sgml/docbook-sgml-$pkgver"
sed -i \
-e '/ISO 8879/d' \
-e '/gml/d' \
docbook.cat
# Add support for previous versions.
cat >> docbook.cat << "EOF"
-- Begin Single Major Version catalog changes --
PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.3//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.2//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "docbook.dtd"
PUBLIC "-//OASIS//DTD DocBook V4.0//EN" "docbook.dtd"
-- End Single Major Version catalog changes --
EOF
}
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"
}

55
docbook-sgml/trunk/docbook-sgml.install

@ -0,0 +1,55 @@
# arg 1: the new package version
pre_install() {
/bin/true
}
# 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%-*}"
}
# arg 1: the old package version
post_remove() {
/bin/true
}
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