From 2774d25eed00d40737fc9993f9f0bd4f18a8e134 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 6 May 2012 16:57:48 +0200 Subject: [PATCH] alsa-lib: move python smixer plugin into its own subpkg. --- srcpkgs/alsa-lib-python | 1 + srcpkgs/alsa-lib/alsa-lib-python.rshlibs | 7 +++++++ srcpkgs/alsa-lib/alsa-lib-python.template | 13 +++++++++++++ srcpkgs/alsa-lib/alsa-lib.rshlibs | 2 -- srcpkgs/alsa-lib/template | 5 ++++- 5 files changed, 25 insertions(+), 3 deletions(-) create mode 120000 srcpkgs/alsa-lib-python create mode 100644 srcpkgs/alsa-lib/alsa-lib-python.rshlibs create mode 100644 srcpkgs/alsa-lib/alsa-lib-python.template diff --git a/srcpkgs/alsa-lib-python b/srcpkgs/alsa-lib-python new file mode 120000 index 0000000000..078dc4b238 --- /dev/null +++ b/srcpkgs/alsa-lib-python @@ -0,0 +1 @@ +alsa-lib \ No newline at end of file diff --git a/srcpkgs/alsa-lib/alsa-lib-python.rshlibs b/srcpkgs/alsa-lib/alsa-lib-python.rshlibs new file mode 100644 index 0000000000..08e2b0033e --- /dev/null +++ b/srcpkgs/alsa-lib/alsa-lib-python.rshlibs @@ -0,0 +1,7 @@ +libasound.so.2 +libpthread.so.0 +libdl.so.2 +libutil.so.1 +libm.so.6 +libpython2.7.so.1.0 +libc.so.6 diff --git a/srcpkgs/alsa-lib/alsa-lib-python.template b/srcpkgs/alsa-lib/alsa-lib-python.template new file mode 100644 index 0000000000..d3d407a458 --- /dev/null +++ b/srcpkgs/alsa-lib/alsa-lib-python.template @@ -0,0 +1,13 @@ +# Template file for 'alsa-lib-python'. +# +short_desc="${sourcepkg} - python smixer plugin" +long_desc="${long_desc} + + This package contains a python smixer plugin for ALSA." + +replaces="alsa-lib<=1.0.25" + +do_install() { + vmove usr/lib/alsa-lib/smixer/smixer-python.so \ + usr/lib/alsa-mixer/smixer +} diff --git a/srcpkgs/alsa-lib/alsa-lib.rshlibs b/srcpkgs/alsa-lib/alsa-lib.rshlibs index 2b2d2a75d7..39d6263d9f 100644 --- a/srcpkgs/alsa-lib/alsa-lib.rshlibs +++ b/srcpkgs/alsa-lib/alsa-lib.rshlibs @@ -1,7 +1,5 @@ libpthread.so.0 libc.so.6 libdl.so.2 -libutil.so.1 libm.so.6 -libpython2.7.so.1.0 librt.so.1 diff --git a/srcpkgs/alsa-lib/template b/srcpkgs/alsa-lib/template index b5dc9c44e9..52171c40b5 100644 --- a/srcpkgs/alsa-lib/template +++ b/srcpkgs/alsa-lib/template @@ -1,10 +1,13 @@ # Template build file for 'alsa-lib'. pkgname=alsa-lib version=1.0.25 +revision=1 +homepage="http://www.alsa-project.org" distfiles="ftp://ftp.alsa-project.org/pub/lib/$pkgname-$version.tar.bz2" build_style=gnu-configure short_desc="The Advanced Linux Sound Architecture (ALSA) library" maintainer="Juan RP " +license="LGPL-2.1" checksum=5a1a805cf04106316d549ec650116ce6711a162e107ba8b3c551866680e286e6 long_desc=" The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI @@ -14,6 +17,6 @@ long_desc=" programming and provide higher level functionality as well as support for the older OSS API, providing binary compatibility for most OSS programs." -subpackages="$pkgname-devel" +subpackages="$pkgname-devel $pkgname-python" Add_dependency build pkg-config Add_dependency build python-devel