updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / hfpforlinux / PKGBUILD
blob23c7afae6af4045d51ad423c4797de6b8668e71e
1 pkgname=hfpforlinux
2 pkgver=2.04
3 pkgrel=2
4 pkgdesc="HFP for Linux is a Bluetooth Hands-Free Profile server"
5 url="http://nohands.sourceforge.net/"
6 arch=('i686' 'x86_64')
7 license=("GPL2")
8 depends=('bluez')
9 optdepends=('libtool' 'speex' 'libsalsa' 'audiofile' 'dbus' 'qt3')
10 makedepends=('svn')
11 conflicts=()
12 replaces=()
13 backup=()
14 build () {
15         svn co https://nohands.svn.sourceforge.net/svnroot/nohands/trunk
16         cd $srcdir/trunk
17         ./autogen.sh
18         ./configure
19         sed -i 's/-D_FORTIFY_SOURCE=2 -Wall/-D_FORTIFY_SOURCE=2 -Wall -fpermissive/' libhfp/Makefile
20         sed -i 's/-laudiofile   -lspeexdsp/-laudiofile   -lspeexdsp -lpthread/' test/Makefile
21         sed -i 's/-laudiofile   -lspeexdsp/-laudiofile   -lspeexdsp -lpthread/' include/Makefile
22         sed -i 's/-laudiofile   -lspeexdsp/-laudiofile   -lspeexdsp -lpthread/' qt/Makefile
23         make
25 package() {
26         cd $srcdir/trunk
27         make DESTDIR="$pkgdir" install || return 1