2016-01-19 20:18:48 +01:00
|
|
|
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
|
|
|
|
|
|
|
|
_pkgname=serd
|
|
|
|
pkgname="${_pkgname}-git"
|
2020-07-16 20:34:17 +02:00
|
|
|
pkgver=0.30.5.r815.49a6eea
|
|
|
|
pkgrel=1
|
2019-10-20 12:04:18 +02:00
|
|
|
pkgdesc="Lightweight C library for RDF syntax supporting reading / writing Turtle and NTriples (git version)"
|
2016-01-19 20:18:48 +01:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://drobilla.net/software/serd/"
|
|
|
|
license=('custom:ISC')
|
2016-03-18 12:46:03 +01:00
|
|
|
makedepends=('git' 'python')
|
|
|
|
conflicts=("${_pkgname}" "${_pkgname}-svn")
|
2019-11-14 06:03:59 +01:00
|
|
|
provides=("${_pkgname}" "${_pkgname}=${pkgver//.r*/}" "lib${_pkgname}-${pkgver::1}.so")
|
2019-05-16 16:59:55 +02:00
|
|
|
source=("$_pkgname::git+https://gitlab.com/drobilla/serd.git"
|
|
|
|
'autowaf::git+https://gitlab.com/drobilla/autowaf.git')
|
2019-11-14 05:58:24 +01:00
|
|
|
md5sums=('SKIP'
|
|
|
|
'SKIP')
|
2016-01-19 20:18:48 +01:00
|
|
|
|
2019-10-20 12:04:18 +02:00
|
|
|
|
2016-01-19 20:18:48 +01:00
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
|
|
|
|
local ver=`grep "^SERD_VERSION" wscript | cut -d "'" -f 2`
|
|
|
|
echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2019-05-16 16:59:55 +02:00
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
|
|
|
|
git submodule init
|
|
|
|
git config submodule.waflib.url "${srcdir}/autowaf"
|
|
|
|
git submodule update
|
2019-11-14 05:58:24 +01:00
|
|
|
|
|
|
|
# remove call to local ldconfig
|
|
|
|
sed -i "/ldconfig/d" wscript
|
2019-05-16 16:59:55 +02:00
|
|
|
}
|
|
|
|
|
2016-01-19 20:18:48 +01:00
|
|
|
build() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
|
|
|
|
python ./waf configure --prefix=/usr
|
|
|
|
python waf build $MAKEFLAGS
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$_pkgname"
|
|
|
|
|
|
|
|
python waf install --destdir="$pkgdir"
|
|
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
|
|
|
|
}
|