summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iso8879/APKBUILD38
-rw-r--r--iso8879/fixline.patch13
-rw-r--r--iso8879/iso8879.post-deinstall3
-rw-r--r--iso8879/iso8879.post-install6
l---------iso8879/iso8879.post-upgrade1
l---------iso8879/iso8879.pre-upgrade1
6 files changed, 62 insertions, 0 deletions
diff --git a/iso8879/APKBUILD b/iso8879/APKBUILD
new file mode 100644
index 0000000..6662156
--- /dev/null
+++ b/iso8879/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: John Vogel <jvogel4@stny.rr.com>
+# Maintainer: John Vogel <jvogel4@stny.rr.com>
+pkgname=iso8879
+pkgver=1986
+pkgrel=0
+pkgdesc="Character entity sets from ISO 8879:1986 (SGML)"
+url="https://www.iso.org/cate/d16387.html"
+arch="noarch"
+license="custom"
+install="iso8879.post-install iso8879.post-deinstall iso8879.pre-upgrade iso8879.post-upgrade"
+depends="xmlcatmgr"
+source="http://www.oasis-open.org/cover/ISOEnts.zip
+ fixline.patch"
+builddir="$srcdir/$pkgname"
+options="!check"
+
+unpack() {
+ mkdir -p "$srcdir/$pkgname"
+ unzip -n -q "$srcdir/ISOEnts.zip" -d "$srcdir/$pkgname" || return 1
+}
+
+build() {
+ printf '-- ISO general entities --\n' > catalog
+ for f in ISO*; do
+ id="$(sed -n 's/^.*\(\".*ENTITIES.*\"\).*$/\1/p' $f)"
+ printf '\nPUBLIC %s\n"%s"\n' "$id" "$f" >> catalog
+ done
+}
+
+package() {
+ install -d -m 0755 "${pkgdir}/usr/share/sgml/iso8879"
+ install -m 0644 -t "${pkgdir}/usr/share/sgml/iso8879" catalog ISO*
+}
+
+sha512sums="
+31c740524737c151a60a0696455892b5d7219c9a7cd3f88d8f07c09cb289ddf90de6d8c27da26eddbe2410e9b5d6283a67527e7ebbd4c3b4cb6ae982cdf449fd ISOEnts.zip
+84957609bdc2b6bf688a3bbefc8ea70b333e3b8191bff39c3fa387c45b50e6e436807768739885c2ef1e832f59476366b5f7c54b61fd943c4fcc9d746c56756c fixline.patch
+"
diff --git a/iso8879/fixline.patch b/iso8879/fixline.patch
new file mode 100644
index 0000000..adff96b
--- /dev/null
+++ b/iso8879/fixline.patch
@@ -0,0 +1,13 @@
+diff -Naur iso8879.orig/ISOamsn iso8879/ISOamsn
+--- iso8879.orig/ISOamsn 2024-06-02 03:13:37.902960952 -0400
++++ iso8879/ISOamsn 2024-06-02 03:13:49.916544906 -0400
+@@ -5,8 +5,7 @@
+ -->
+ <!-- Character entity set. Typical invocation:
+ <!ENTITY % ISOamsn PUBLIC
+- "ISO 8879:1986//ENTITIES
+- Added Math Symbols: Negated Relations//EN">
++ "ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN">
+ %ISOamsn;
+ -->
+ <!ENTITY gnap SDATA "[gnap ]"--/gnapprox N: greater, not approximate-->
diff --git a/iso8879/iso8879.post-deinstall b/iso8879/iso8879.post-deinstall
new file mode 100644
index 0000000..3cf3a6f
--- /dev/null
+++ b/iso8879/iso8879.post-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+xmlcatmgr -s remove CATALOG /usr/share/sgml/iso8879/catalog
diff --git a/iso8879/iso8879.post-install b/iso8879/iso8879.post-install
new file mode 100644
index 0000000..38c56cc
--- /dev/null
+++ b/iso8879/iso8879.post-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+[ -d /etc/sgml ] || mkdir -m 0755 /etc/sgml
+[ -f /etc/sgml/catalog ] || xmlcatmgr -s create
+
+xmlcatmgr -s add CATALOG /usr/share/sgml/iso8879/catalog --
diff --git a/iso8879/iso8879.post-upgrade b/iso8879/iso8879.post-upgrade
new file mode 120000
index 0000000..0c91c44
--- /dev/null
+++ b/iso8879/iso8879.post-upgrade
@@ -0,0 +1 @@
+iso8879.post-install \ No newline at end of file
diff --git a/iso8879/iso8879.pre-upgrade b/iso8879/iso8879.pre-upgrade
new file mode 120000
index 0000000..933b955
--- /dev/null
+++ b/iso8879/iso8879.pre-upgrade
@@ -0,0 +1 @@
+iso8879.post-deinstall \ No newline at end of file