summaryrefslogtreecommitdiff
path: root/extra/libffado/PKGBUILD
blob: 9510acf068552d9c489fca066b9433c37f8deae3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# $Id: PKGBUILD 196292 2013-10-10 19:31:03Z 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=4
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'
        'rules.patch')
md5sums=('26bce2be0b9c1fa4e614f2f494edf388'
         '10aa837f5521da213caa93e1ddc58c0e'
         'da1102bfb02e67b3dfcb3947435a81e9')

_scons-conf() {
  scons DEBUG=False \
        PREFIX=/usr \
        MANDIR=/usr/share/man \
        UDEVDIR=/usr/lib/udev/rules.d \
        COMPILE_FLAGS="$CFLAGS" $@
}

prepare() {
  cd "$srcdir/$pkgname-$pkgver"

  # python2 fix
  patch -Np1 -i "$srcdir/python2-qt.patch"

  # rule comments must be on their own line
  # see https://bugs.archlinux.org/task/36949
  # and http://subversion.ffado.org/ticket/373
  patch -Np0 -i "$srcdir/rules.patch"
}

build() {
  cd "$srcdir/$pkgname-$pkgver"

  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/ffado.png"
}

# vim:set ts=2 sw=2 et: