diff options
author | root <root@rshg054.dnsready.net> | 2012-09-23 01:12:09 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-09-23 01:12:09 -0700 |
commit | a7f8166c8968d3414378051d28dcfcc3e377837b (patch) | |
tree | 1b1b5c4383fe5d1f8c98c8c417fd588e67877e13 /testing/libffado/PKGBUILD | |
parent | 0297e16d6d46f426939811847e72539d15bbf12d (diff) |
Sun Sep 23 01:11:08 PDT 2012
Diffstat (limited to 'testing/libffado/PKGBUILD')
-rw-r--r-- | testing/libffado/PKGBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/libffado/PKGBUILD b/testing/libffado/PKGBUILD new file mode 100644 index 000000000..2537c7a73 --- /dev/null +++ b/testing/libffado/PKGBUILD @@ -0,0 +1,60 @@ +# $Id: PKGBUILD 166937 2012-09-22 19:34:15Z schiv $ +# Maintainer: Ray Rashif <schiv@archlinux.org> +# Contributor: galiyosha@gmail.com +# Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com> + +pkgname=libffado +pkgver=2.1.0 +pkgrel=2 +pkgdesc="Driver for FireWire audio devices" +arch=('i686' 'x86_64') +url="http://www.ffado.org/" +license=('GPL') +depends=('libiec61883' 'libavc1394' 'dbus-c++' + 'libxml++' 'alsa-lib' 'libsigc++' 'libconfig') +makedepends=('scons' 'subversion' 'python2-pyqt') +optdepends=('python2: ffado-diag' + 'python2-pyqt: mixer applet') +provides=('ffado') +source=("http://www.ffado.org/files/$pkgname-$pkgver.tgz" + 'python2-qt.patch') +md5sums=('26bce2be0b9c1fa4e614f2f494edf388' + '10aa837f5521da213caa93e1ddc58c0e') + +_scons-conf() { + scons DEBUG=False \ + PREFIX=/usr \ + MANDIR=/usr/share/man \ + UDEVDIR=/usr/lib/udev/rules.d \ + ENABLE_SETBUFFERSIZE_API_VER=false \ + COMPILE_FLAGS="$CFLAGS" $@ +} + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # python2 fix + patch -Np1 -i "$srcdir/python2-qt.patch" + + # build! + if [ "$CARCH" = 'x86_64' ]; then + _scons-conf ENABLE_OPTIMIZATIONS=True + else + _scons-conf + fi +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + scons DESTDIR="$pkgdir" WILL_DEAL_WITH_XDG_MYSELF="True" install + + # 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: |