2016-01-19 20:31:26 +01:00
|
|
|
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
|
|
|
|
|
|
|
|
_pkgname=sord
|
|
|
|
pkgname="${_pkgname}-git"
|
2019-10-20 12:12:18 +02:00
|
|
|
pkgver=0.16.2.r412.9c11543
|
2016-01-19 20:31:26 +01:00
|
|
|
pkgrel=1
|
2019-10-20 12:12:18 +02:00
|
|
|
pkgdesc="Lightweight C library for storing RDF statements in memory (git version)"
|
2016-01-19 20:31:26 +01:00
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://drobilla.net/software/sord/"
|
|
|
|
license=('custom:ISC')
|
|
|
|
depends=('pcre' 'serd')
|
|
|
|
makedepends=('git' 'python')
|
|
|
|
conflicts=("${_pkgname}" "${_pkgname}-svn")
|
2018-12-19 17:27:39 +01:00
|
|
|
provides=("${_pkgname}" "${_pkgname}=${pkgver//.r*/}")
|
2016-01-19 20:31:26 +01:00
|
|
|
install="${_pkgname}.install"
|
2019-05-16 17:02:09 +02:00
|
|
|
source=("${_pkgname}::git+https://gitlab.com/drobilla/sord.git"
|
|
|
|
'autowaf::git+https://gitlab.com/drobilla/autowaf.git')
|
|
|
|
md5sums=('SKIP' 'SKIP')
|
2016-01-19 20:31:26 +01:00
|
|
|
|
2019-10-20 12:12:18 +02:00
|
|
|
|
2016-01-19 20:31:26 +01:00
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
|
|
|
|
local ver=`grep "^SORD_VERSION" wscript | cut -d "'" -f 2`
|
|
|
|
echo "$ver.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
|
|
|
|
}
|
|
|
|
|
2019-05-16 17:02:09 +02:00
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
|
|
|
|
git submodule init
|
|
|
|
git config submodule.waflib.url "${srcdir}/autowaf"
|
|
|
|
git submodule update
|
2019-10-20 12:12:18 +02:00
|
|
|
|
|
|
|
# remove local call to ldconfig
|
|
|
|
sed -i "/ldconfig/d" wscript
|
2019-05-16 17:02:09 +02:00
|
|
|
}
|
|
|
|
|
2016-01-19 20:31:26 +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"
|
|
|
|
}
|