summaryrefslogtreecommitdiff
path: root/iso8879/APKBUILD
blob: 66621563272e01f15b111341b879dc8d36b586cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
"