[arch-commits] Commit in lilv/trunk (4 files)

David Runge dvzrv at gemini.archlinux.org
Sun Aug 14 16:28:26 UTC 2022


    Date: Sunday, August 14, 2022 @ 16:28:26
  Author: dvzrv
Revision: 1266065

upgpkg: lilv 0.24.18-1: Upgrade to 0.24.18.

Switch to meson (yay) as build system.
Remove unneeded prepare().
Split documentation out to lilv-docs package.

Added:
  lilv/trunk/keys/
  lilv/trunk/keys/pgp/
  lilv/trunk/keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc
Modified:
  lilv/trunk/PKGBUILD

-------------------------------------------------------+
 PKGBUILD                                              |   89 ++++++++--------
 keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc |    1 
 2 files changed, 46 insertions(+), 44 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-14 16:04:04 UTC (rev 1266064)
+++ PKGBUILD	2022-08-14 16:28:26 UTC (rev 1266065)
@@ -2,66 +2,67 @@
 # Contributor: Ray Rashif <schiv at archlinux.org>
 # Contributor: speps <speps at aur dot archlinux dot org>
 
-pkgname=lilv
-pkgver=0.24.14
-pkgrel=2
+pkgbase=lilv
+pkgname=(lilv lilv-docs)
+pkgver=0.24.18
+pkgrel=1
 pkgdesc="A C library interface to the LV2 plug-in standard"
 arch=(x86_64)
 url="https://drobilla.net/software/lilv.html"
 license=(ISC)
-depends=(glibc lv2)
-makedepends=(libsndfile python serd sord sratom swig waf)
-optdepends=(
-  'bash-completion: completion for bash'
-  'libsndfile: for lv2apply'
-  'python: for Python bindings'
-)
-provides=(liblilv-0.so)
+makedepends=(doxygen libsndfile lv2 meson python python-sphinx python-sphinx-lv2-theme serd sord sratom swig)
 options=(debug)
-source=(https://download.drobilla.net/$pkgname-$pkgver.tar.bz2{,.sig})
-sha512sums=('f266e91f3cbc325c25dd7d08bde5033091cb3072c2dcb1490e9474f562b798dbc71c45ca7d971ed4dfd6bb16f5f6725ae242a58c4486684b71350e73f1469f47'
+source=(https://download.drobilla.net/$pkgname-$pkgver.tar.xz{,.sig})
+sha512sums=('eece846338403ba3e7c366024511d33bd5e399d3b1e6871d04ec3907540a9e3541ab7b0445bf17cf61c5779c5263f1ef23eadefb6411a2e4be8d79464a5b873e'
             'SKIP')
-b2sums=('bc84fe5a4bf34f88ea7f9c09cb3168186f7f0fd2f3f23b08f55100502d959fd74fe7e1c6d9307772b1983fbeedde100f75d6751e9bf92a9663aaaa115ca0770c'
+b2sums=('c1d191a8513776b4e783f05076b8a8d5a20866e734527ff84e04d970d190b26d2c922aa6f7ba346632caea47daa265c1008d9295c3f0e41f85227103337ccd1f'
         'SKIP')
 validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3') # David Robillard <d at drobilla.net>
 
-prepare() {
-  cd $pkgname-$pkgver
-  # 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
+_pick() {
+  local p="$1" f d; shift
+  for f; do
+    d="$srcdir/$p/${f#$pkgdir/}"
+    mkdir -p "$(dirname "$d")"
+    mv "$f" "$d"
+    rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+  done
 }
 
 build() {
-  export LINKFLAGS="$LDFLAGS"
-
-  cd $pkgname-$pkgver
-  waf configure --prefix=/usr \
-                --no-bash-completion \
-                --dyn-manifest \
-                --test
-  waf -v build
+  arch-meson $pkgname-$pkgver build
+  meson compile -C build
 }
 
 check() {
-  cd $pkgname-$pkgver
-  waf test
+  meson test -C build
 }
 
-package() {
-  depends+=(libserd-0.so libsord-0.so libsratom-0.so)
+package_lilv() {
+  depends=(glibc libserd-0.so libsord-0.so libsratom-0.so lv2)
+  optdepends=(
+    'libsndfile: for lv2apply'
+    'lilv-docs: for documentation'
+    'python-numpy: for Python bindings'
+  )
+  provides=(liblilv-0.so)
 
-  cd $pkgname-$pkgver
-  waf install --destdir="$pkgdir"
-  install -vDm 644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
-  install -vDm 644 utils/lilv.bash_completion "$pkgdir/usr/share/bash-completion/completions/$pkgname"
+  meson install -C build --destdir "$pkgdir"
+  (
+    cd "$pkgdir"
+    _pick $pkgname-docs usr/share/doc
+  )
+  install -vDm 644 $pkgname-$pkgver/COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 $pkgname-$pkgver/{NEWS,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
+  # install bash completion to correct directory and remove /etc
+  install -vDm 644 "$pkgdir/etc/bash_completion.d/$pkgname" -t "$pkgdir/usr/share/bash-completion/completions/"
+  rm -frv "$pkgdir/etc"
 }
-# vim:set ts=2 sw=2 et:
+
+package_lilv-docs() {
+  pkgdesc+=" - documentation"
+
+  mv -v $pkgname/* "$pkgdir"
+  mv -v "$pkgdir/usr/share/doc/$pkgbase"{-0,}
+  find "$pkgdir" -type f -iname "*.buildinfo" -delete
+}

Added: keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc
===================================================================
(Binary files differ)

Index: lilv/trunk/keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc
===================================================================
--- keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc	2022-08-14 16:04:04 UTC (rev 1266064)
+++ keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc	2022-08-14 16:28:26 UTC (rev 1266065)

Property changes on: lilv/trunk/keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pgp-keys
\ No newline at end of property


More information about the arch-commits mailing list