pkgname: opensp pkgver: '1.5.2pre1' pkgrel: 1 pkgdesc: C++ library for using SGML/XML files. url: 'URL: http://openjade.sourceforge.net/doc/' arch: x86_64 depends: [] makedepends: - sgml-common source: - 'https://downloads.sourceforge.net/openjade/OpenSP-${pkgver}.tar.gz' - OpenSP-1.5.2-gcc14-1.patch sha256sums: - d95687c5584cdd1d56d29bef0c748575ca0b2b8cbe8654c08c42b9fdf53c1ce5 - SKIP build: | cd OpenSP-${pkgver} patch -Np1 -i ../OpenSP-1.5.2-gcc14-1.patch sed -i 's/32,/253,/' lib/Syntax.cxx && sed -i 's/LITLEN 240 /LITLEN 8092/' \ unicode/{gensyntax.pl,unicode.syn} && ./configure --prefix=/usr \ --disable-static \ --disable-doc-build \ --enable-default-catalog=/etc/sgml/catalog \ --enable-http \ --enable-default-search-path=/usr/share/sgml make DESTDIR=${PKGDIR} install # create the SP equivalents of OpenSP executables and libraries cd ${PKGDIR}/usr/bin ln -v -sf onsgmls nsgmls ln -v -sf osgmlnorm sgmlnorm ln -v -sf ospam spam ln -v -sf ospcat spcat ln -v -sf ospent spent ln -v -sf osx sx ln -v -sf osx sgml2xml cd ${PKGDIR}/usr/lib ln -v -sf libosp.so libsp.so # Obsolet lib rm -f ${PKGDIR}/usr/lib/libosp.la package: | true