git » suil.git » commit 475b049

Upgrade to 0.10.16.

author David Runge
2022-08-14 16:56:06 UTC
committer David Runge
2022-08-14 16:56:06 UTC
parent 8db982d934b0c050aca114bdb33d41aed441fe4c

Upgrade to 0.10.16.

Switch to meson (yay) as build system.
Run tests in check().
Split out documentation to suil-docs split package.
Remove gtk2 support as GTK2 is EOL and host support is removed by all major LV2 plugin hosts.

PKGBUILD +47 -50
keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc +51 -0

diff --git a/PKGBUILD b/PKGBUILD
index 715df4d..818093a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,69 +2,66 @@
 # Contributor: Ray Rashif <schiv@archlinux.org>
 # Contributor: speps <speps at aur dot archlinux dot org>
 
-pkgname=suil
-pkgver=0.10.12
-pkgrel=2
+pkgbase=suil
+pkgname=(suil suil-docs)
+pkgver=0.10.16
+pkgrel=1
 pkgdesc="A lightweight C library for loading and wrapping LV2 plugin UIs"
 arch=(x86_64)
 url="https://drobilla.net/software/suil.html"
 license=(ISC)
-depends=(glibc lv2)
-makedepends=(gtk2 gtk3 python qt5-base qt5-x11extras waf)
-optdepends=(
-  'atk: support for wrapping X11 and Qt5 in GTK2/3 and GTK2 in Qt5'
-  'cairo: support for wrapping X11 and Qt5 in GTK2/3'
-  'fontconfig: support for wrapping X11 and Qt5 in GTK2 and GTK2 in Qt5'
-  'gcc-libs: support for wrapping GTK2 and X11 in Qt5 and Qt5 in GTK2/3'
-  'gdk-pixbuf2: support for wrapping X11 and Qt5 in GTK2/3 and GTK2 in Qt5'
-  'glib2: support for wrapping X11 and Qt5 in GTK2/3 and GTK2 in Qt5'
-  'gtk2: support for wrapping X11 and Qt5 in GTK2 and GTK2 in Qt5'
-  'gtk3: support for wrapping X11 and Qt5 in GTK3'
-  'libfreetype.so: support for wrapping X11 and Qt5 in GTK2 and GTK2 in Qt5'
-  'libx11: support for wrapping X11 directly and in GTK2/3'
-  'qt5-base: support for wrapping X11 in Qt5, Qt5 in GTK2/3 and GTK2 in Qt5'
-  'qt5-x11extras: support for wrapping X11 in Qt5'
-  'pango: support for wrapping X11 in GTK2/3, Qt5 in GTK2/3 and GTK2 in Qt5'
-  'zlib: support for wrapping X11 in GTK3 and Qt5 in GTK3'
-)
-provides=(libsuil-0.so)
+makedepends=(doxygen gtk3 lv2 meson python-sphinx python-sphinx-lv2-theme qt5-base qt5-x11extras)
 options=(debug)
-source=(https://download.drobilla.net/$pkgname-$pkgver.tar.bz2{,.sig})
-sha512sums=('f2b9ca36cc35d6b51c6e4ae144d61b1ba5e3b51113cca48d0535f6346ff918bdc7e299f0036ea1431c0ef59b1a02f1f4086a95db552d0a06bffb54567ab4a278'
+source=(https://download.drobilla.net/$pkgname-$pkgver.tar.xz{,.sig})
+sha512sums=('9b1dac07b017934a93f70d514ec477785683e7ed5949b62a2c4ad139c1e84265399f54d3140dcf0e542d20a0919286aacb52103c91e2f6fc7ebd707db2d98ac4'
             'SKIP')
-b2sums=('f70bbc18f5fa1a9263fe5c0a9241e966e124a855273bc6fe863375aef8505193e49b67d3b9d7ff6d4e4cf50cb6c2cb2b2d53dccab06005f82725e024cc8347d5'
+b2sums=('614217013b39215f4b6d9414451a55fbca42dd038c6bc961d3769660707bf2da45432c97628edef8dacb8630437bcb304d10616ced2fd9cf9a6a4d094f196f6c'
         'SKIP')
 validpgpkeys=('907D226E7E13FA337F014A083672782A9BF368F3') # David Robillard <d@drobilla.net>
 
-prepare() {
-  cd $pkgname-$pkgver
-  # remove local call to 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
+_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"
+  arch-meson $pkgname-$pkgver build -D gtk2=disabled
+  meson compile -C build
+}
 
-  cd $pkgname-$pkgver
-  waf configure --prefix=/usr
-  waf build
+check() {
+  meson test -C build
 }
 
-package() {
-  cd $pkgname-$pkgver
-  waf install --destdir="$pkgdir"
-  install -vDm 644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname/"
-  install -vDm 644 {AUTHORS,NEWS,PACKAGING,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
+package_suil() {
+  depends=(gcc-libs glibc)
+  optdepends=(
+    'glib2: support for wrapping X11 and Qt5 in GTK3'
+    'gtk3: support for wrapping X11 and Qt5 in GTK3'
+    'libx11: support for wrapping X11 directly and in GTK3'
+    'qt5-base: support for wrapping X11 in Qt5 and Qt5 in GTK3'
+    'qt5-x11extras: support for wrapping X11 in Qt5'
+  )
+  provides=(libsuil-0.so)
+
+  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/{AUTHORS,NEWS,PACKAGING,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
+}
+
+package_suil-docs() {
+  pkgdesc+=" - documentation"
+
+  mv -v $pkgname/* "$pkgdir"
+  mv -v "$pkgdir/usr/share/doc/$pkgbase"{-0,}
+  find "$pkgdir" -type f -iname "*.buildinfo" -delete
 }
-# vim:set ts=2 sw=2 et:
diff --git a/keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc b/keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc
new file mode 100644
index 0000000..5db4880
--- /dev/null
+++ b/keys/pgp/907D226E7E13FA337F014A083672782A9BF368F3.asc
@@ -0,0 +1,51 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+
+mQINBE9AVkUBEADq7tfHjwigK52ON0AnA4lYwwk6z8dJbMIJGhj1kcC9Yzh4i58D
+Gmn7G/0jI74MCdz+NE86NcAdtkk5kOP6+SS951UO3EZngg0jG272vb7jgAv8zhh+
+jej3f1cquGyad3loS/2zYgRe0eH7fROUQ9ViDO5AzNC1Hdh4Ksr8ICp4IiRX2TQh
+Fxbl4RzXOJ7kbKy5xG+U/uj05Z6EEUMqndK4UoWEwb4y/Q1IYRbYKjZo2JdYQrqx
+Z8hPBuc5MZyLifsFpYAYj0iCH2WWNCBi1x+wxwx2lfjeDCnbgojoT8C4WjR8TXpA
+RWhTZZS4FRjFBPwaeBrx3HwIF7QEG87amoOX6JScTWDVl9ai5mIfYZbiQNDEavpx
+TaWFpjE3EEGDj6QbjlUX/Luajaf2kMB+Q3aA2ujHcH266vkXDAaIMAo2RkTntvem
+LgQSFH1kcX2EGiMG7a02o0mVtg1lM3t7TjS1ozySiRQw+sONlEEqfn5w663WYWrA
+1PG5lROS1MgPAdNQSVoJUCIHy2eT8w7MUmbVrpcbDqM/lcEtrG7JTZFVhT1m3DKC
+gf3wLTfppjM645hy2xfoS7WuGWQSXAkuDZNC8OPvTLH+41ljRFGysqryp0iu++Ji
+A5LafqNnz15otCi3MMa3WtkiUmz3g22LD84cE0euvmaEON9DIn0eESMGpwARAQAB
+tCBEYXZpZCBSb2JpbGxhcmQgPGRAZHJvYmlsbGEubmV0PokCOgQTAQgAJAIbAwUL
+CQgHAwUVCgkICwUWAgMBAAIeAQIXgAUCT0BX2QIZAQAKCRA2cngqm/No88fWEAC8
+8Y//G/iQ/acdZRm+2WzeRkwXYSegoC5Dm0pMJ1PPL1sToWQynenU8hmLZh4N664n
+TP9DjFb/4VF8U3EVih6PEuODgKxUjYY7mq34eyEEQ6X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