1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: dorphell <dorphell@archlinux.org>
3 # Contributor: Tom Newsom <Jeepster@gmx.co.uk>
8 pkgdesc="A library and a set of tools for validating, parsing and manipulating SGML and XML documents"
10 url="http://openjade.sourceforge.net/"
12 depends=('sgml-common' 'perl')
13 makedepends=('xmlto' 'docbook-xsl')
14 source=("https://downloads.sourceforge.net/project/openjade/opensp/$pkgver/OpenSP-$pkgver.tar.gz")
15 sha256sums=('57f4898498a368918b0d49c826aa434bb5b703d2c3b169beb348016ab25617ce')
19 ./configure --prefix=/usr \
20 --mandir=/usr/share/man \
23 --enable-default-catalog=/etc/sgml/catalog \
24 --enable-default-search-path=/usr/share/sgml:/usr/share/xml \
26 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
32 make check || /bin/true
37 make DESTDIR="${pkgdir}" install
39 # add symlinks for compatibility with jade, see FS#49775
40 for file in nsgmls sgmlnorm spam spcat spent sx ; do
41 ln -s o$file $pkgdir/usr/bin/$file
42 echo ".so man1/o${file}.1" > $pkgdir/usr/share/man/man1/${file}.1
44 ln -v -sf libosp.so $pkgdir/usr/lib/libsp.so
46 # Rename sx to sgml2xml; FS#49792
47 mv $pkgdir/usr/bin/sx $pkgdir/usr/bin/sgml2xml
48 mv $pkgdir/usr/share/man/man1/{sx,sgml2xml}.1
50 install -D -m644 COPYING "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE