summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pcr/filter_audio-git/COPYING29
-rw-r--r--pcr/filter_audio-git/Makefile24
-rw-r--r--pcr/filter_audio-git/PKGBUILD34
3 files changed, 87 insertions, 0 deletions
diff --git a/pcr/filter_audio-git/COPYING b/pcr/filter_audio-git/COPYING
new file mode 100644
index 000000000..da40b336c
--- /dev/null
+++ b/pcr/filter_audio-git/COPYING
@@ -0,0 +1,29 @@
+Copyright (c) 2011, Google Inc. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ * Neither the name of Google nor the names of its contributors may
+ be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/pcr/filter_audio-git/Makefile b/pcr/filter_audio-git/Makefile
new file mode 100644
index 000000000..f79ebc308
--- /dev/null
+++ b/pcr/filter_audio-git/Makefile
@@ -0,0 +1,24 @@
+LDLIBS = -lm -lpthread
+
+subdirs := agc ns aec other
+sources := $(foreach dir,$(subdirs),$(wildcard $(dir)/*.c))
+objects := $(sources:.c=.o)
+
+programs := libfilteraudio.so
+headers := filter_audio.h
+
+%.o: %.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -fPIC -c -o $@ $<
+
+libfilteraudio.so: filter_audio.o $(objects)
+ $(CC) $(LDFLAGS) -shared -o $@ $^ $(LDLIBS)
+
+all: $(programs)
+
+clean:
+ rm -f $(objects) $(programs)
+
+install: $(programs) $(headers)
+ install -dm755 $(DESTDIR)/usr/lib $(DESTDIR)/usr/include
+ install -m755 $(programs) $(DESTDIR)/usr/lib
+ install -m644 $(headers) $(DESTDIR)/usr/include
diff --git a/pcr/filter_audio-git/PKGBUILD b/pcr/filter_audio-git/PKGBUILD
new file mode 100644
index 000000000..e29c31ccc
--- /dev/null
+++ b/pcr/filter_audio-git/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer (Arch): Ivan Shapovalov <intelfx100@gmail.com>
+
+pkgname=filter_audio-git
+pkgver=r20.2c3678f
+pkgrel=1
+pkgdesc="An easy to use audio filtering library made from webrtc code"
+arch=('i686' 'x86_64')
+url="https://github.com/irungentoo/filter_audio"
+license=('custom:BSD')
+makedepends=('git')
+provides=("filter_audio")
+conflicts=("filter_audio")
+source=("git://github.com/irungentoo/filter_audio.git"
+ 'Makefile'
+ 'COPYING')
+sha512sums=('SKIP'
+ 'c05ec200025f259f5ca60974339b3bba19b5d3612b1fb1fed7b7cdca26bb6dd17de63ce0b63f148af52ae391079b6b4575811ec5b6c4484ab509be878d93256a'
+ '2e1adab66b8b286d6ac5a373808e3f2e3a00c981bbede4bda16576d091e7df306b92aa24a8f759f53e0efcf12ca86d46e8d02845fd83d763c30f6153ee91ef23')
+
+pkgver() {
+ cd filter_audio
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd filter_audio
+ make -f "$srcdir/Makefile"
+}
+
+package() {
+ cd filter_audio
+ make -f "$srcdir/Makefile" DESTDIR="$pkgdir" install
+ install -Dm644 "$srcdir/COPYING" "$pkgdir/usr/share/licenses/$pkgname/COPYING"
+}