[arch-commits] Commit in lv2/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Fri Mar 16 17:15:44 UTC 2018


    Date: Friday, March 16, 2018 @ 17:15:43
  Author: dvzrv
Revision: 308898

upgpkg: lv2 1.14.0-3

Updating maintainer. Adding more descriptive pkgdesc.
Adding asciidoc and doxygen and python2-{pygments,rdflib,six} to makedepends to build documentation.
Adding python2-{pygments,rdflib} to optdepends for lv2specgen.py.
Adding signature for source. Fixing python2 shebang in prepare().
Building docs and tests in build(). Running tests in check(). Installing various docs.

Modified:
  lv2/trunk/PKGBUILD

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 36 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-16 17:14:57 UTC (rev 308897)
+++ PKGBUILD	2018-03-16 17:15:43 UTC (rev 308898)
@@ -1,37 +1,57 @@
 # $Id$
-# Maintainer: Ray Rashif <schiv at archlinux.org>
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Ray Rashif <schiv at archlinux.org>
 
 pkgname=lv2
 pkgver=1.14.0
-pkgrel=2
-pkgdesc="Successor to the LADSPA audio plug-in standard"
+pkgrel=3
+pkgdesc="Plugin standard for audio systems"
 url="http://lv2plug.in/"
 license=('LGPL' 'custom')
 arch=('x86_64')
-makedepends=('python2' 'libsndfile' 'gtk2')
+makedepends=('asciidoc' 'doxygen' 'gtk2' 'libsndfile' 'pygmentize'
+'python2-pygments' 'python2-rdflib' 'python2-six')
 optdepends=('libsndfile: Example sampler'
             'gtk2: Example sampler'
-            'python2: Scripts')
+            'python2-pygments: Documentation generator script'
+            'python2-rdflib: Documentation generator script')
 provides=('lv2core')
 conflicts=('lv2core')
 replaces=('lv2core')
-source=("http://lv2plug.in/spec/$pkgname-$pkgver.tar.bz2")
-md5sums=('0b56285a77aac3c93b50c36203aa91ee')
+source=("http://lv2plug.in/spec/${pkgname}-${pkgver}.tar.bz2"{,.asc})
+sha512sums=('6991d848ed9f04a48ca3070efc15af83431f680aa8a8559a02b1666f7b8d43af8e089f78c3b14ad3345dac32fd1c8ad0faf3a3f56dddc07c6f0e0aeef4077498'
+            'SKIP') # David Robillard
+validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3')
 
+prepare(){
+  cd "${pkgname}-${pkgver}"
+  # fix python2 shebang
+  sed -e 's/python/python2/' -i lv2specgen/lv2specgen.py
+}
+
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  python2 waf configure --prefix=/usr --libdir=/usr/lib
+  cd "${pkgname}-${pkgver}"
+  python2 waf configure --prefix=/usr \
+    --libdir=/usr/lib \
+    --docs \
+    --test
   python2 waf build $MAKEFLAGS
 }
 
+check() {
+  cd "${pkgname}-${pkgver}"
+  python2 waf test
+}
+
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  python2 waf install --destdir="$pkgdir"
-
-  install -Dm644 COPYING \
-    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+  cd "${pkgname}-${pkgver}"
+  python2 waf install --destdir="${pkgdir}"
+  # license
+  install -vDm644 COPYING \
+    "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  # docs
+  install -vDm644 {NEWS,README.md}\
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list