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

David Runge dvzrv at archlinux.org
Sat Jul 28 16:09:40 UTC 2018


    Date: Saturday, July 28, 2018 @ 16:09:40
  Author: dvzrv
Revision: 363879

upgpkg: alsa-tools 1.1.6-2

Adding python2-pyalsa to make and optdepends. Updating _tools array with upstream data.
Switching to https for url. Refactoring recursive build approach of subprojects.

Modified:
  alsa-tools/trunk/PKGBUILD

----------+
 PKGBUILD |   90 ++++++++++++++++++++++++++-----------------------------------
 1 file changed, 39 insertions(+), 51 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-28 15:53:25 UTC (rev 363878)
+++ PKGBUILD	2018-07-28 16:09:40 UTC (rev 363879)
@@ -1,4 +1,6 @@
-# Maintainer: Ray Rashif <schiv at archlinux.org>
+# $Id$
+# Maintainer: David Runge <dave at sleepmap.de>
+# Contributor: Ray Rashif <schiv at archlinux.org>
 # Contributor: Limao Luo <luolimao+AUR at gmail.com>
 # Contributor: Sebastien Luttringer <seblu+arch at seblu.net>
 # Contributor: Jochen Immendœrfer <jochen.immendoerfer at gmail.com>
@@ -5,72 +7,58 @@
 
 pkgname=alsa-tools
 pkgver=1.1.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Advanced tools for certain sound cards"
 arch=('x86_64')
-url="http://alsa-project.org/"
-license=('GPL')
-depends=('gcc-libs' 'alsa-lib')
-makedepends=('fltk' 'gtk2' 'gtk3')
+url="https://alsa-project.org/"
+license=('GPL2')
+depends=('alsa-lib' 'gcc-libs')
+makedepends=('fltk' 'gtk2' 'gtk3' 'python2-pyalsa')
 optdepends=('fltk: hdspconf, hdspmixer'
-            'gtk2: other GUI tools'
+            'gtk2: envy24control, echomixer, rmeddigicontrol'
             'gtk3: hdajackretask'
-            'bash: couple of tools')
+            'python2-pyalsa: hwmixvolume'
+            'python2-gtk: hwmixvolume'
+            'python2-gobject2: hwmixvolume')
 provides=("$pkgname-emu10k1" "$pkgname-ice1712")
 source=("ftp://ftp.alsa-project.org/pub/tools/$pkgname-$pkgver.tar.bz2")
-md5sums=('5ca8c9437ae779997cd62fb2815fef19')
+sha512sums=('33617ec6726ca11f66849c893a8dd9bf9faa8832374788819d9280159ac358c83443331faac24881df593cfd0b24b22769a41cbcb0af3c1fd781baab0c802d17')
 
-_tools=("as10k1" "echomixer" "envy24control" "hdajackretask" "hda-verb"
-        "hdspconf" "hdsploader" "hdspmixer" "ld10k1" "mixartloader"
-        "pcxhrloader" "rmedigicontrol" "sb16_csp" "sbiload" "sscape_ctl"
-        "us428control" "usx2yloader" "vxloader")
+# qlo10k1 is removed, because it's unable to build
+_tools=( 'as10k1' 'envy24control' 'hdsploader' 'hdspconf' 'hdspmixer'
+'mixartloader' 'pcxhrloader' 'rmedigicontrol' 'sb16_csp' 'seq/sbiload'
+'sscape_ctl' 'us428control usx2yloader' 'vxloader' 'echomixer' 'ld10k1'
+'hwmixvolume' 'hdajackretask' 'hda-verb' 'hdajacksensetest')
 
 prepare() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  # qlo10k1 cannot be built; it depends on ld10k1
-  sed -i 's:ld10k1 qlo10k1 \\:ld10k1 \\:' Makefile
-
-  # hwmixvolume requires pyalsa, not currently in repos
-  sed -i 's:hwmixvolume hdajackretask :hdajackretask :' Makefile
+  cd "$pkgname-$pkgver"
+  for tool in ${_tools[@]}; do
+    (
+    cd $tool
+    autoreconf -vfi
+    )
+  done
 }
 
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  # not using upstream's global makefile as it's too clever
-  for i in ${_tools[@]}; do
-    if [ $i != sbiload ]; then
-      (
-      cd $i
-      ./configure --prefix=/usr --sbindir=/usr/bin
-      make
-      )
-    else
-      (
-      cd seq/sbiload
-      ./configure --prefix=/usr --sbindir=/usr/bin
-      make
-      )
-    fi
+  cd "$pkgname-$pkgver"
+  # not using upstream's global makefile as it's trying to be too clever
+  for tool in ${_tools[@]}; do
+    (
+    cd $tool
+    ./configure --prefix=/usr --sbindir=/usr/bin
+    make
+    )
   done
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  for i in ${_tools[@]}; do
-    if [ $i != sbiload ]; then
-      (
-      cd $i
-      make DESTDIR="$pkgdir" install
-      )
-    else
-      (
-      cd seq/sbiload
-      make DESTDIR="$pkgdir" install
-      )
-    fi
+  cd "$pkgname-$pkgver"
+  for tool in ${_tools[@]}; do
+    (
+    cd $tool
+    make DESTDIR="$pkgdir" install
+    )
   done
 }
 



More information about the arch-commits mailing list