2016-01-19 20:31:26 +01:00
|
|
|
# Maintainer: Christopher Arndt <aur -at- chrisarndt -dot- de>
|
|
|
|
|
|
|
|
_pkgname=sord
|
|
|
|
pkgname="${_pkgname}-git"
|
2016-03-18 12:46:39 +01:00
|
|
|
pkgver=0.15.1.r336.2843ab1
|
2016-01-19 20:31:26 +01:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A lightweight C library for storing RDF statements in memory"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://drobilla.net/software/sord/"
|
|
|
|
license=('custom:ISC')
|
|
|
|
depends=('pcre' 'serd')
|
|
|
|
makedepends=('git' 'python')
|
|
|
|
conflicts=("${_pkgname}" "${_pkgname}-svn")
|
2016-03-18 12:54:10 +01:00
|
|
|
provides=("${_pkgname}" "${_pkgname}=${pkgver}")
|
2016-01-19 20:31:26 +01:00
|
|
|
install="${_pkgname}.install"
|
2016-03-18 12:46:39 +01:00
|
|
|
source=("${_pkgname}::git+http://git.drobilla.net/sord.git")
|
2016-01-19 20:31:26 +01:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
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)"
|
|
|
|
}
|
|
|
|
|
|
|
|
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"
|
|
|
|
}
|