[arch-commits] Commit in serd/trunk (PKGBUILD)
David Runge
dvzrv at archlinux.org
Mon Oct 21 07:54:13 UTC 2019
Date: Monday, October 21, 2019 @ 07:54:12
Author: dvzrv
Revision: 518048
upgpkg: serd 0.30.2-1
Upgrading to 0.30.2. Devendoring waf by copying required python scripts to a separate location and modifying wscript to use them. Adding python-rdflib to checkdepends.
Modified:
serd/trunk/PKGBUILD
----------+
PKGBUILD | 35 ++++++++++++++++++++++++-----------
1 file changed, 24 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-21 07:47:51 UTC (rev 518047)
+++ PKGBUILD 2019-10-21 07:54:12 UTC (rev 518048)
@@ -1,9 +1,9 @@
-# Maintainer: David Runge <dave at sleepmap.de>
-# Maintainer: Ray Rashif <schiv at archlinux.org>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Ray Rashif <schiv at archlinux.org>
# Contributor: speps <speps at aur dot archlinux dot org>
pkgname=serd
-pkgver=0.30.0
+pkgver=0.30.2
pkgrel=1
pkgdesc="Lightweight C library for RDF syntax supporting reading/ writing Turtle and NTriples."
arch=('x86_64')
@@ -10,9 +10,11 @@
url="https://drobilla.net/software/serd/"
license=('custom:ISC')
depends=('glibc')
-makedepends=('python')
+makedepends=('waf')
+checkdepends=('python-rdflib')
+provides=('libserd-0.so')
source=("https://download.drobilla.net/${pkgname}-${pkgver}.tar.bz2"{,.sig})
-sha512sums=('23ff30f2d3dd622bdd65deee36cb92ae5f4a0c539cf32a1bd9802f2d7cf4aa3e96f25d2fe579277d1ab943f6d25c0be68d7b4863f83d4733f489462620a4c1bb'
+sha512sums=('b1e18ac883aac2a8146ee0e1de553ac2b512deba5307e5c9fa2733d9011ed0777d67790aa6527e73b3f11c9da0d8c9a98227457bb412897296f4464228cac0f7'
'SKIP')
validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3')
@@ -20,24 +22,35 @@
cd "${pkgname}-${pkgver}"
# remove call to local ldconfig
sed -i "/ldconfig/d" wscript
+ # let wscript(s) find the custom waf scripts
+ mkdir -pv tools
+ touch __init__.py
+ cp -v waflib/extras/{autoship,autowaf,lv2}.py tools/
+ mkdir -pv plugins/tools/
+ cp -v waflib/extras/{autoship,autowaf,lv2}.py plugins/tools/
+ rm -rv waflib
+ sed -e 's/waflib.extras/tools/g' \
+ -e "s/load('autowaf'/load('autowaf', tooldir='tools'/g" \
+ -e "s/load('lv2'/load('lv2', tooldir='tools'/g" \
+ -i wscript
}
build() {
cd "${pkgname}-${pkgver}"
- python waf configure --prefix=/usr \
- --mandir=/usr/share/man \
- --test
- python waf
+ waf configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --test
+ waf
}
check() {
cd "${pkgname}-${pkgver}"
- python waf test
+ waf test
}
package() {
cd "${pkgname}-${pkgver}"
- python waf install --destdir="${pkgdir}"
+ waf install --destdir="${pkgdir}"
# license
install -vDm 644 COPYING \
"$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
More information about the arch-commits
mailing list