New package: paprefs-0.9.10
This commit is contained in:
parent
67ac555505
commit
42efe61f85
|
@ -0,0 +1,33 @@
|
|||
From 4fcee37cb92c689b43a0d8fc1d8e6b2764834cbf Mon Sep 17 00:00:00 2001
|
||||
From: Colin Guthrie <colin@mageia.org>
|
||||
Date: Sun, 6 Nov 2011 14:31:27 +0000
|
||||
Subject: [PATCH] Do not require a recompile for each new PA version in order to detect the modules.
|
||||
|
||||
---
|
||||
src/paprefs.cc | 9 +++++++--
|
||||
1 files changed, 7 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/paprefs.cc b/src/paprefs.cc
|
||||
index 21fdc95..919b15c 100644
|
||||
--- src/paprefs.cc
|
||||
+++ src/paprefs.cc
|
||||
@@ -637,9 +637,14 @@ void MainWindow::readFromGConf() {
|
||||
}
|
||||
|
||||
gchar * MainWindow::modulePath(const gchar *name) {
|
||||
- gchar *path, *pulsedir, *c;
|
||||
+ gchar *path, *pulsedir, *c, **versions;
|
||||
|
||||
- pulsedir = g_strdup_printf ("pulse-%d.%d", PA_MAJOR, PA_MINOR);
|
||||
+ versions = g_strsplit(pa_get_library_version(), ".", 3);
|
||||
+ if (versions[0] && versions[1])
|
||||
+ pulsedir = g_strdup_printf ("pulse-%s.%s", versions[0], versions[1]);
|
||||
+ else
|
||||
+ pulsedir = g_strdup_printf ("pulse-%d.%d", PA_MAJOR, PA_MINOR);
|
||||
+ g_strfreev(versions);
|
||||
|
||||
path = g_build_filename (MODLIBDIR, pulsedir, "modules", name, NULL);
|
||||
g_free (pulsedir);
|
||||
--
|
||||
1.6.3.3
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# Template file for 'paprefs'
|
||||
pkgname=paprefs
|
||||
version=0.9.10
|
||||
revision=1
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="intltool lynx pkg-config"
|
||||
makedepends="GConf-devel dbus-glib-devel gconfmm-devel gtkmm2-devel
|
||||
libglademm-devel libglade-devel libsigc++-devel pulseaudio-devel"
|
||||
depends="hicolor-icon-theme"
|
||||
short_desc="Editor for pulseaudio settings"
|
||||
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
|
||||
license="GPL-3"
|
||||
homepage="http://0pointer.de/lennart/projects/paprefs/"
|
||||
distfiles="http://freedesktop.org/software/pulseaudio/${pkgname}/${pkgname}-${version}.tar.xz"
|
||||
checksum=261c5a67543f2d0c019894fb933949f6ee7c5e181808e1e9565f0784961eabb0
|
||||
|
||||
CXXFLAGS="-std=c++11"
|
Loading…
Reference in New Issue