[arch-commits] Commit in sgml-common/repos (4 files)
Andreas Radke
andyrtr at archlinux.org
Wed Apr 13 17:12:13 UTC 2016
Date: Wednesday, April 13, 2016 @ 19:12:13
Author: andyrtr
Revision: 264824
archrelease: copy trunk to extra-any
Added:
sgml-common/repos/extra-any/
sgml-common/repos/extra-any/PKGBUILD
(from rev 264823, sgml-common/trunk/PKGBUILD)
sgml-common/repos/extra-any/sgml-common-0.6.3-manpage-1.patch
(from rev 264823, sgml-common/trunk/sgml-common-0.6.3-manpage-1.patch)
sgml-common/repos/extra-any/sgml-common.install
(from rev 264823, sgml-common/trunk/sgml-common.install)
-----------------------------------+
PKGBUILD | 37 ++++++++++++++++++++++++
sgml-common-0.6.3-manpage-1.patch | 14 +++++++++
sgml-common.install | 55 ++++++++++++++++++++++++++++++++++++
3 files changed, 106 insertions(+)
Copied: sgml-common/repos/extra-any/PKGBUILD (from rev 264823, sgml-common/trunk/PKGBUILD)
===================================================================
--- extra-any/PKGBUILD (rev 0)
+++ extra-any/PKGBUILD 2016-04-13 17:12:13 UTC (rev 264824)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+# Contributor: Andrew Fyfe <andrew at neptune-one.net>
+# Maintainer: Jonas Heinrich <onny at project-insanity.org>
+
+pkgname='sgml-common'
+pkgver=0.6.3
+pkgrel=4
+pkgdesc='Tools for maintaining centralized SGML catalogs.'
+arch=('any')
+url='http://www.docbook.org/xml/'
+license=('GPL')
+install='sgml-common.install'
+depends=('sh')
+source=("ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/sgml-common-${pkgver}.tgz"
+ 'sgml-common-0.6.3-manpage-1.patch')
+sha512sums=('3c4a55f555596b2a6bf6af66c497679226e7b40625ac16832150488311cba7f9fc523435eea5837262a5517f5c09c4c0e07fe4a2cf02184d4027609c26e4bc0c'
+ 'c584ff6e66e1d58456c07849bf96fedd3f1df0b93430f6301c4d4ab9906821dea0cbac82eada19197540b5e31f13febd04fadda5b6e2ba4b0b6ee8f0328292f7')
+
+prepare() {
+ cd "${srcdir}/sgml-common-${pkgver}"
+ patch -Np1 -i ../sgml-common-0.6.3-manpage-1.patch
+}
+
+build() {
+ cd "${srcdir}/sgml-common-${pkgver}"
+ autoreconf -f -i
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+}
+package(){
+ cd "${srcdir}/sgml-common-${pkgver}"
+ make DESTDIR="$pkgdir" install
+
+ mv "$pkgdir/usr/doc" "$pkgdir/usr/share/doc"
+}
+
Copied: sgml-common/repos/extra-any/sgml-common-0.6.3-manpage-1.patch (from rev 264823, sgml-common/trunk/sgml-common-0.6.3-manpage-1.patch)
===================================================================
--- extra-any/sgml-common-0.6.3-manpage-1.patch (rev 0)
+++ extra-any/sgml-common-0.6.3-manpage-1.patch 2016-04-13 17:12:13 UTC (rev 264824)
@@ -0,0 +1,14 @@
+Submitted By: Thomas Pegg <lnxfreak123 at insightbb dot com>
+Date: 2003-11-18
+Initial Package Version: 0.6.3
+Origin: Thomas Pegg
+Description: Fixes syntax of Makefile.am for installation of man pages,
+for use with current automake versions 1.7.8 and higher.
+
+diff -Naur sgml-common-0.6.3.orig/doc/man/Makefile.am sgml-common-0.6.3/doc/man/Makefile.am
+--- sgml-common-0.6.3.orig/doc/man/Makefile.am 2001-01-30 14:42:22.000000000 +0000
++++ sgml-common-0.6.3/doc/man/Makefile.am 2003-11-18 16:48:47.000000000 +0000
+@@ -1,2 +1 @@
+-man8dir = $(mandir)/man8
+-man8_DATA = *.8
++man_MANS = install-catalog.8
Copied: sgml-common/repos/extra-any/sgml-common.install (from rev 264823, sgml-common/trunk/sgml-common.install)
===================================================================
--- extra-any/sgml-common.install (rev 0)
+++ extra-any/sgml-common.install 2016-04-13 17:12:13 UTC (rev 264824)
@@ -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-ent.cat \
+ /usr/share/sgml/sgml-iso-entities-8879.1986/catalog
+
+ install-catalog --add /etc/sgml/sgml-docbook.cat \
+ /etc/sgml/sgml-ent.cat
+}
+
+remove_catalog() {
+ 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
+}
+
+op=$1
+shift
+$op "$@"
+
+# vim:set syntax=sh ts=4 sw=4 noet:
+
More information about the arch-commits
mailing list