archrelease: copy trunk to extra-x86_64
[arch-packages.git] / raptor / repos / extra-x86_64 / PKGBUILD
bloba0f77c20b847a1a13624b0df166ec7a01d648520
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Tom Gundersen <teg@jklm.no>
3 # Contributor: Andreas Radke <andyrtr@archlinux.org>
4 # Contributor: eric <eric@archlinux.org>
5 # Contributor: Damir Perisa <damir.perisa@bluewin.ch>
7 _name=raptor2
8 pkgname=raptor
9 pkgver=2.0.15
10 pkgrel=17
11 pkgdesc="A C library that parses RDF/XML/N-Triples into RDF triples"
12 arch=('x86_64')
13 url="http://librdf.org/raptor"
14 license=('Apache' 'GPL2' 'LGPL2.1')
15 depends=('glibc' 'libxml2' 'libxslt' 'xz' 'zlib')
16 makedepends=('curl' 'icu')
17 provides=('libraptor2.so')
18 source=("http://librdf.org/dist/source/${_name}-$pkgver.tar.gz"{,.asc}
19         "${pkgname}-2.0.15-CVE-2017-18926.patch::https://github.com/dajobe/raptor/commit/590681e546cd9aa18d57dc2ea1858cb734a3863f.patch"
20         "${pkgname}-2.0.15-out_of_bounds.patch")
21 sha512sums=('563dd01869eb4df8524ec12e2c0a541653874dcd834bd1eb265bc2943bb616968f624121d4688579cdce11b4f00a8ab53b7099f1a0850e256bb0a2c16ba048ee'
22             'SKIP'
23             '203ae75dae8242fb7988a199df8a7337b0660871f5caa6c9098167536ba880ad55765bb60fd4315020f208ed3ae8dc03eb1b91241851410a961a797192ecb969'
24             '140f90d74fad8cdc6ef7fa14fa655e425552947d57068021362f8ae9efdded8ed31295e9bdd495fe70e646967062e28fa3ecd5831f9902134da5fe0a82607735')
25 b2sums=('0a39c7b5705bfbf2daa0ca633f79693953b4dfe24c144008d1646a9840a36d4d7ce153b527450647127ec2522047dbd0a6e71f307ee5656951f7e4b610adfd22'
26         'SKIP'
27         'a3f83e34686dfd55ad1c4b9e97f6ae046be31b8224846dfa2b83ba9228cb987c6ebb19f37f48c196fab56a1e1d007d71225ed12acc2188e088b95c7cff5a0beb'
28         'ab11eeb648bf2cf8ac4ef4bbff4cdb77d1b713ad086268b656c7249363bf5752b535763f9a9fd34be4d72b3ff420cd87ee6970d3da6e24e5e2b067b9dbb9c29e')
29 validpgpkeys=('F879F0DEDA780198DD08DC6443EC92504F71955A') # Dave Beckett <dave@dajobe.org>
31 prepare() {
32   mv -v "${_name}-${pkgver}" "${pkgname}-${pkgver}"
33   cd "${pkgname}-${pkgver}"
34   # fix CVE-2017-18926:
35   # https://bugs.archlinux.org/task/68613
36   patch -Np1 -i "../${pkgname}-2.0.15-CVE-2017-18926.patch"
37   # fix out-of-bounds read:
38   # https://bugs.librdf.org/mantis/view.php?id=650
39   patch -Np1 -i "../${pkgname}-2.0.15-out_of_bounds.patch"
40   # autoreconf -vfi
43 build() {
44   cd "${pkgname}-${pkgver}"
46   ./configure --prefix='/usr' \
47               --disable-static \
48               --with-icu-config='/usr/bin/icu-config'
49   make
52 check() {
53   cd "${pkgname}-${pkgver}"
54   make check || echo "Known to fail."
57 package() {
58   depends+=('libcurl.so' 'libicudata.so' 'libicui18n.so' 'libicuuc.so')
59   cd "${pkgname}-${pkgver}"
60   make prefix="${pkgdir}"/usr install
61   install -vDm 644 {AUTHORS,ChangeLog*,README} \
62     -t "${pkgdir}/usr/share/doc/${pkgname}/"