summaryrefslogtreecommitdiffstats
path: root/abs/extra/libffado/PKGBUILD
diff options
context:
space:
mode:
authorCecil <knoppmyth@gmail.com>2011-07-05 05:42:35 (GMT)
committerCecil <knoppmyth@gmail.com>2011-07-05 05:42:35 (GMT)
commite94298509a3317c506244df81ff73ce1f43f4b80 (patch)
tree1982466a9e53bc22dbb4618383f56067a6c001c5 /abs/extra/libffado/PKGBUILD
parent5902feee48e2ad4b925c890d6a685813e0f28025 (diff)
downloadlinhes_pkgbuild-e94298509a3317c506244df81ff73ce1f43f4b80.zip
linhes_pkgbuild-e94298509a3317c506244df81ff73ce1f43f4b80.tar.gz
linhes_pkgbuild-e94298509a3317c506244df81ff73ce1f43f4b80.tar.bz2
libffado:Bumped to latest.
Diffstat (limited to 'abs/extra/libffado/PKGBUILD')
-rw-r--r--abs/extra/libffado/PKGBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/abs/extra/libffado/PKGBUILD b/abs/extra/libffado/PKGBUILD
new file mode 100644
index 0000000..4111264
--- /dev/null
+++ b/abs/extra/libffado/PKGBUILD
@@ -0,0 +1,59 @@
+# $Id: PKGBUILD 96817 2010-10-24 22:17:33Z schiv $
+# Maintainer: Ray Rashif <schivmeister@gmail.com>
+# Contributor: galiyosha@gmail.com
+# Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
+
+pkgname=libffado
+pkgver=2.0.1
+pkgrel=2
+pkgdesc="Driver for FireWire audio devices"
+arch=('i686' 'x86_64')
+url="http://www.ffado.org/"
+license=('GPL')
+depends=('libiec61883' 'libavc1394' 'libsigc++'
+ 'libxml++' 'alsa-lib' 'dbus')
+makedepends=('scons' 'pyqt')
+optdepends=('pyqt: mixer applet')
+provides=('ffado')
+source=(http://www.ffado.org/files/$pkgname-$pkgver.tar.gz)
+md5sums=('786f31facd417e6207e429f50af0e15e')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # hack to use CFLAGS without optimising
+ sed -i 's/-O2//g' SConstruct
+
+ if [ "$CARCH" = "x86_64" ]; then
+ sed -i "s/-m64/-m64 $CFLAGS/g" SConstruct
+ else
+ sed -i "s/-m32/-m32 $CFLAGS/g" SConstruct
+ fi
+
+ # python2 fix
+ sed -i 's:python $SOURCE:python2 $SOURCE:' SConstruct
+ sed -i 's:python support/tools:python2 support/tools:' \
+ support/tools/SConscript
+
+ scons PREFIX=/usr #ENABLE_OPTIMIZATIONS=True
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ scons DESTDIR="$pkgdir/" WILL_DEAL_WITH_XDG_MYSELF="True" install
+
+ # python2 fix
+ for i in $(grep '^#!.*bin.*python' -R "$pkgdir" | sed 's/:.*//'); do
+ sed -i 's:^#!.*bin.*python:#!/usr/bin/python2:' "$i"
+ done
+
+ # desktop files & icons
+ install -Dm644 support/xdg/ffado.org-ffadomixer.desktop \
+ "$pkgdir/usr/share/applications/ffadomixer.desktop"
+
+ install -Dm644 support/xdg/hi64-apps-ffado.png \
+ "$pkgdir/usr/share/pixmaps/$pkgname.png"
+}
+
+# vim:set ts=2 sw=2 et: