mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 12:14:37 +08:00
udev rule has invalid syntax, and fsck.vfat couldn't be found at /sbin which is also complained by systemd (maybe because we use separate usr). Since other fsck binary is also in sbin such move should be ok.
53 lines
1.6 KiB
Bash
53 lines
1.6 KiB
Bash
# Maintainer: Neophytos Kolokotronis <tetris4 AT gmail DOT com>
|
|
# Contributor: abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=libffado
|
|
pkgver=2.1.0
|
|
pkgrel=6
|
|
pkgdesc="Driver for FireWire audio devices"
|
|
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"
|
|
"libffado-2.1.0-udev-rules.patch::http://subversion.ffado.org/attachment/ticket/373/libffado-2.1.0-udev-rules.patch?format=raw")
|
|
md5sums=('26bce2be0b9c1fa4e614f2f494edf388'
|
|
'da1102bfb02e67b3dfcb3947435a81e9')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
# udev rules fix for new systemd
|
|
patch -i ../libffado-2.1.0-udev-rules.patch -p0 || return 1
|
|
|
|
# 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=yes UDEVDIR=/usr/lib/udev/rules.d
|
|
}
|
|
|
|
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/ffado.png"
|
|
}
|
|
|