Date: Sunday, April 9, 2023 @ 19:03:07
  Author: felixonmars
Revision: 1443468

archrelease: copy trunk to community-staging-x86_64

Added:
  libffado/repos/community-staging-x86_64/
  libffado/repos/community-staging-x86_64/PKGBUILD
    (from rev 1443467, libffado/trunk/PKGBUILD)
  libffado/repos/community-staging-x86_64/libffado-2.4.2-python38.patch
    (from rev 1443467, libffado/trunk/libffado-2.4.2-python38.patch)

-------------------------------+
 PKGBUILD                      |   53 ++++++++++++++++++++++++++++++++++++++++
 libffado-2.4.2-python38.patch |   24 ++++++++++++++++++
 2 files changed, 77 insertions(+)

Copied: libffado/repos/community-staging-x86_64/PKGBUILD (from rev 1443467, 
libffado/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2023-04-09 19:03:07 UTC (rev 1443468)
@@ -0,0 +1,53 @@
+# Maintainer: David Runge <[email protected]>
+# Contributor: Ray Rashif <[email protected]>
+# Contributor: [email protected]
+# Contributor: Jon Kristian Nilsen <[email protected]>
+
+pkgname=libffado
+pkgver=2.4.7
+pkgrel=2
+pkgdesc="Driver for FireWire audio devices"
+arch=(x86_64)
+url="http://www.ffado.org/";
+license=(GPL3)
+depends=(gcc-libs glibc glibmm hicolor-icon-theme libavc1394
+libiec61883 libxml++ python-dbus)
+makedepends=(alsa-lib dbus-c++ jack libconfig python-pyqt5 scons)
+optdepends=('python-pyqt5: ffado-mixer')
+provides=(libffado.so)
+source=(http://www.ffado.org/files/$pkgname-$pkgver.tgz)
+sha512sums=('424a9ca7ded12e72d77a50d7ddf4e50dc0d55b80d725499df7609ce60d0eac8b24a41d9b8e4e74f78bdefe114b61bd5f1ec09a6d083f4a58475e66d61153f075')
+b2sums=('3c304011259ddbd35ce8fd725d38a5f50fca962981f9c5af6e377493a14985e4b96c64bcc54ba5a341028ec17dc6f2c42ce527422779f2edc6f9a1a61220cf51')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # fix icon name, so it's coherent with XDG desktop file name
+  sed -e 's/hi64-apps-ffado/ffado-mixer/g' -i 
support/xdg/ffado.org-ffadomixer.desktop
+  # fix id, so it's coherent with XDG desktop file name
+  sed -e 's/ffado.org-ffadomixer.desktop/ffado-mixer.desktop/g' -i 
support/xdg/ffado-mixer.appdata.xml
+}
+
+build() {
+  local python_version=$(python -c 'import sys; print(".".join(map(str, 
sys.version_info[:2])))')
+
+  cd $pkgname-$pkgver
+  scons PREFIX=/usr \
+        DEBUG=no \
+        CUSTOM_ENV=True \
+        MANDIR=/usr/share/man \
+        PYTHON_INTERPRETER=/usr/bin/python3 \
+        PYPKGDIR=/usr/lib/python$python_version/site-packages \
+        UDEVDIR=/usr/lib/udev/rules.d
+}
+
+package() {
+  depends+=(libasound.so libconfig++.so libdbus-c++-1.so)
+
+  cd $pkgname-$pkgver
+  scons DESTDIR="$pkgdir" WILL_DEAL_WITH_XDG_MYSELF=True install
+  install -vDm 644 support/xdg/ffado.org-ffadomixer.desktop 
"$pkgdir/usr/share/applications/ffado-mixer.desktop"
+  install -vDm 644 support/xdg/hi64-apps-ffado.png 
"$pkgdir/usr/share/icons/hicolor/64x64/apps/ffado-mixer.png"
+  install -vDm 644 {AUTHORS,README} -t "$pkgdir/usr/share/doc/$pkgname/"
+}
+
+# vim:set ts=2 sw=2 et:

Copied: libffado/repos/community-staging-x86_64/libffado-2.4.2-python38.patch 
(from rev 1443467, libffado/trunk/libffado-2.4.2-python38.patch)
===================================================================
--- community-staging-x86_64/libffado-2.4.2-python38.patch                      
        (rev 0)
+++ community-staging-x86_64/libffado-2.4.2-python38.patch      2023-04-09 
19:03:07 UTC (rev 1443468)
@@ -0,0 +1,24 @@
+diff -ruN a/support/mixer-qt4/ffado/configuration.py 
b/support/mixer-qt4/ffado/configuration.py
+--- a/support/mixer-qt4/ffado/configuration.py 2017-03-28 13:38:34.000000000 
+0200
++++ b/support/mixer-qt4/ffado/configuration.py 2019-11-24 20:55:05.284341627 
+0100
+@@ -20,7 +20,8 @@
+ # along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ #
+ 
+-import re, os
++import os
++import dbus
+ 
+ import shlex
+ 
+@@ -53,6 +54,10 @@
+                 self.addDevice( dev )
+ 
+     def getDeviceById( self, vendor, model ):
++        if isinstance(vendor, dbus.Int32):
++            vendor = str(int(vendor))
++        if isinstance(model, dbus.Int32):
++            model = str(int(model))
+         log.debug("DeviceList::getDeviceById( %s, %s )" % (vendor, model ))
+         for dev in self.devices:
+             if int("%s" % dev['vendorid'], 0) == int("%s" % vendor, 0) and \

Reply via email to