contrib/raptor/Pkgfile

41 lines
1.2 KiB
Plaintext
Raw Normal View History

2019-08-11 11:14:12 +02:00
# Description: A C library that parses RDF/XML/N-Triples into RDF triples
# URL: http://librdf.org/raptor
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: icu libxslt
2019-08-11 11:14:12 +02:00
name=raptor
version=2.0.15
release=3
source=(http://librdf.org/dist/source/raptor2-$version.tar.gz
0001-CVE-2020-25713-raptor2-malformed-input-file-can-lead.patch.1
0001-Calcualte-max-nspace-declarations-correctly-for-XML-.patch.1
Wint-conversion.patch
libtool.patch
raptor-bundled-soname.patch.1
raptor-emscripten.patch.1
rpath.patch
ubsan.patch
xml2-config.patch)
2019-08-11 11:14:12 +02:00
build() {
cd "$name"2-$version
patch -Np1 -i $SRC/0001-CVE-2020-25713-raptor2-malformed-input-file-can-lead.patch.1
patch -Np1 -i $SRC/0001-Calcualte-max-nspace-declarations-correctly-for-XML-.patch.1
patch -Np0 -i $SRC/Wint-conversion.patch
patch -Np0 -i $SRC/libtool.patch
patch -Np1 -i $SRC/raptor-bundled-soname.patch.1
patch -Np1 -i $SRC/raptor-emscripten.patch.1
patch -Np0 -i $SRC/rpath.patch
patch -Np0 -i $SRC/ubsan.patch
patch -Np0 -i $SRC/xml2-config.patch
2019-08-11 11:14:12 +02:00
./configure --prefix=/usr \
--with-yajl=no \
--with-icu-config=/usr/bin/icu-config
make
make prefix="$PKG"/usr install
2019-08-11 11:14:12 +02:00
rm -r $PKG/usr/share/gtk-doc
}