updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hfpforlinux / PKGBUILD
blob8eddffdd15078c16b70ce364a5846b3b56487f52
1 pkgname=hfpforlinux
2 pkgver=2.04
3 pkgrel=3
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         sed -i 's/-Wshadow -fno-exceptions/-Wshadow -fno-exceptions -fpermissive/' hfpd/Makefile
24         sed -i 's/CXXFLAGS = -march=x86-64/CXXFLAGS = -fstrict-aliasing -fpermissive -march=x86-64/' qt/Makefile
25         make
27 package() {
28         cd $srcdir/trunk
29         make DESTDIR="$pkgdir" install || return 1