70 lines
2.1 KiB
Bash
70 lines
2.1 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
_name=raptor2
|
|
pkgname=raptor
|
|
pkgver=2.0.16
|
|
pkgrel=03
|
|
pkgdesc="A C library that parses RDF/XML/N-Triples into RDF triples"
|
|
url="https://librdf.org/raptor"
|
|
depends=(glibc libxml2 libxslt xz zlib)
|
|
makedepends=(curl gtk-doc icu)
|
|
provides=(libraptor2.so)
|
|
source=(https://librdf.org/dist/source/$_name-$pkgver.tar.gz{,.asc})
|
|
|
|
prepare() {
|
|
cd $_name-$pkgver
|
|
autoreconf -fiv
|
|
}
|
|
|
|
build() {
|
|
local configure_options=(
|
|
--prefix=/usr
|
|
--disable-static
|
|
--with-icu-config=/usr/bin/icu-config
|
|
)
|
|
|
|
cd $_name-$pkgver
|
|
./configure "${configure_options[@]}"
|
|
# prevent excessive overlinking due to libtool
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
check() {
|
|
# run with one job as tests are otherwise flaky: https://github.com/dajobe/raptor/issues/49
|
|
make check -C $_name-$pkgver -j1
|
|
}
|
|
|
|
package() {
|
|
depends+=(
|
|
curl libcurl.so
|
|
icu libicuuc.so
|
|
)
|
|
|
|
make DESTDIR="$pkgdir" install -C $_name-$pkgver
|
|
install -vDm 644 $_name-$pkgver/{AUTHORS,ChangeLog*,README} -t "$pkgdir/usr/share/doc/$pkgname/"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(Apache GPL2 LGPL2.1)
|
|
|
|
validpgpkeys=('F879F0DEDA780198DD08DC6443EC92504F71955A') # Dave Beckett <dave@dajobe.org>
|
|
|
|
sha512sums=('9bd5cff36390e1e0ef15ac56e5413ecfceb4018cb531a4da8850d3623615f12a93690a78be61f9d9ae7a24e16f6446e356bc2b7f34051ddc077761d85a9b7c44'
|
|
'SKIP')
|
|
b2sums=('1e5e5742ba4cdaacb98a9ba77a9352589df0da60869e7721ee140c81ed4886bf909b37b247bd925c82a4ac44b3c11a909c913f0851d49a1d9d91c9293189266d'
|
|
'SKIP')
|
|
|
|
sha256sums=(089db78d7ac982354bdbf39d973baf09581e6904ac4c92a98c5caadb3de44680 # raptor2-2.0.16.tar.gz
|
|
04f1da2c3d6c3dc718d8c28a4e3f2878dc70294c43bb94c66533f2117b8e7dc6) # raptor2-2.0.16.tar.gz.asc
|
|
|
|
|
|
## 2958ebf14242bd2afc57869e40c4b5c8890e48f5bdb5554851f5247a5acddcd3 raptor-2.0.16-03-x86_64.pkg.tar.lz
|