#Maintainer: Dimitris Tzemos pkgname=libffado pkgver=2.2.1 pkgrel=1dj source=("http://www.ffado.org/files/$pkgname-$pkgver.tgz" "ffado.png" 'fix-test-errno-usage.patch' 'python2-qt.patch') docs=('authors' 'copying' 'changelog' 'install' 'news' 'readme') url="http://www.ffado.org/" # extradepends=('PyQt' 'sip') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - Free Firewire Audio Drivers" "The FFADO project aims to provide a generic, open-source" "solution for the support of FireWire based audio devices for" "the Linux platform. It is the successor of the FreeBoB project." ) build() { cd $startdir/src/$pkgname-$pkgver # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=805211 patch -Np1 -i "$SRC/fix-test-errno-usage.patch" || return 1 patch -Np1 -i "$SRC/python2-qt.patch" || return 1 sed -i "s/-O2 -DNDEBUG/$SLKCFLAGS -DNDEBUG/ " SConstruct scons \ --implicit-deps-unchanged \ PREFIX=/usr \ LIBDIR=/usr/lib${LIBDIRSUFFIX} \ DEBUG="False" \ DESTDIR=$PKG \ WILL_DEAL_WITH_XDG_MYSELF="True" \ COMPILE_FLAGS="$CFLAGS -std=gnu++11" \ install || return 1 # icon mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps cp $startdir/ffado.png $startdir/pkg/usr/share/icons/hicolor/48x48/apps/ # desktop file mkdir -p $startdir/pkg/usr/share/applications cat << "EOF" > $startdir/pkg/usr/share/applications/ffado.desktop [Desktop Entry] Name=FFADO Mixer Comment=A mixer for FireWire cards supported by FFADO Icon=ffado Exec=ffado-mixer Terminal=false Type=Application Encoding=UTF-8 Categories=Qt;Audio;AudioVideo;AudioVideoEditing;Multimedia EOF }