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

David Runge dvzrv at archlinux.org
Fri May 29 11:07:35 UTC 2020


    Date: Friday, May 29, 2020 @ 11:07:35
  Author: dvzrv
Revision: 636987

upgpkg: libffado 2.4.3-1: Upgrading to 2.4.3.

Adding all available sodeps in package() and moving the respective packages to makedepends.
Making the use of PYPKGDIR generic by relying on the version reported by the python interpreter.

Modified:
  libffado/trunk/PKGBUILD

----------+
 PKGBUILD |   23 ++++++++++-------------
 1 file changed, 10 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-29 10:55:37 UTC (rev 636986)
+++ PKGBUILD	2020-05-29 11:07:35 UTC (rev 636987)
@@ -4,22 +4,19 @@
 # Contributor: Jon Kristian Nilsen <jokr.nilsen at gmail.com>
 
 pkgname=libffado
-pkgver=2.4.2
-pkgrel=3
+pkgver=2.4.3
+pkgrel=1
 pkgdesc="Driver for FireWire audio devices"
 arch=('x86_64')
 url="http://www.ffado.org/"
 license=('GPL3')
-depends=('alsa-lib' 'gcc-libs' 'glibc' 'glibmm' 'hicolor-icon-theme'
-'libavc1394' 'libdbus-c++-1.so' 'libconfig++.so' 'libiec61883' 'libxml++'
-'python-dbus')
-makedepends=('jack' 'python-pyqt5' 'scons')
+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"
-        "${pkgname}-2.4.2-python38.patch")
-sha512sums=('96533ed15f95153bf34dffb55ab97cf0f3f6127c5b7a86edeeb55fe74540bbc23b40f494abfa41074176a04f18db311a56e436a0ef7b8afae612f2d1f641ab10'
-            '5087aef1dd9bb2aa3c9c768d2ae8edffc11b6a3491f5df8df097b9ea0c7ff88d29f7c98d014d86805cd1b81fc5eb0f7b937a4607daf705a41310c20c66db93b3')
+source=("http://www.ffado.org/files/${pkgname}-${pkgver}.tgz")
+sha512sums=('d5d3f6b5c446002f3b62d00a215532c208fcc86bedb444bb20872b6b064d48330c6c1ba923bacc4f538ac8e2c73be4dfe0e27f80ea196d5789493d980dfde609')
 
 prepare() {
   cd "${pkgname}-${pkgver}"
@@ -26,11 +23,10 @@
   # 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 missing type conversion for python >= 3.8
-  patch -Np1 -i "../${pkgname}-2.4.2-python38.patch"
 }
 
 build() {
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
   cd "${pkgname}-${pkgver}"
   scons PREFIX=/usr \
         DEBUG=no \
@@ -37,11 +33,12 @@
         CUSTOM_ENV=True \
         MANDIR='/usr/share/man' \
         PYTHON_INTERPRETER='/usr/bin/python3' \
-        PYPKGDIR='/usr/lib/python3.8/site-packages' \
+        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
 


More information about the arch-commits mailing list