core/libffado/PKGBUILD

52 lines
1.4 KiB
Bash
Raw Normal View History

# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
# Contributor: abveritas[at]chakra-project[dot]org>
pkgname=libffado
2015-01-05 21:54:56 +08:00
pkgver=2.2.1
pkgrel=1
pkgdesc="Driver for FireWire audio devices"
2012-12-08 03:52:45 +08:00
arch=('x86_64')
url="http://www.ffado.org/"
license=('GPL')
depends=('libiec61883' 'libavc1394' 'libsigc++' 'libxml++' 'alsa-lib'
'dbus' 'libconfig' 'dbus-c++')
makedepends=('scons' 'python2-pyqt4' 'python2')
optdepends=('python2-pyqt4: mixer applet'
'python2: ffado-diag')
source=("http://www.ffado.org/files/libffado-$pkgver.tgz"
2015-01-05 21:54:56 +08:00
'python2-qt.patch')
md5sums=('e113d828835051f835fb4a329cb0cbd4'
'acb6e0dca1239850c7862bf2e1443fd7')
2015-01-05 21:54:56 +08:00
prepare() {
2012-12-08 03:52:45 +08:00
cd "$srcdir/$pkgname-$pkgver"
2015-01-05 21:54:56 +08:00
msg2 "Applying Python 2 compatibility patch (downstream)"
patch -Np1 -i "$srcdir/python2-qt.patch"
}
2015-01-05 21:54:56 +08:00
build() {
cd "$srcdir/$pkgname-$pkgver"
2015-01-05 21:54:56 +08:00
scons DEBUG=False \
ENABLE_OPTIMIZATIONS=true \
PREFIX=/usr \
MANDIR=/usr/share/man \
UDEVDIR=/usr/lib/udev/rules.d \
COMPILE_FLAGS="$CFLAGS"
}
package() {
2012-12-08 03:52:45 +08:00
cd "$srcdir/$pkgname-$pkgver"
scons DESTDIR="$pkgdir" WILL_DEAL_WITH_XDG_MYSELF="True" install
# desktop files & icons
2012-12-08 03:52:45 +08:00
install -Dm644 support/xdg/ffado.org-ffadomixer.desktop \
"$pkgdir/usr/share/applications/ffadomixer.desktop"
2012-12-08 03:52:45 +08:00
install -Dm644 support/xdg/hi64-apps-ffado.png \
"$pkgdir/usr/share/pixmaps/ffado.png"
}