summaryrefslogtreecommitdiff
path: root/pcr/yate/PKGBUILD
blob: 01428fa272982b84854009eff5ba0cb45a53192b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
    # Maintainer: said
    # Contributor: Yejun Yang <yejunx AT gmail DOT com>
    # Contributor: Biru Ionut <ionut@archlinux.ro>
    pkgname=yate
    pkgver=4.1.0
    pkgrel=1
    pkgdesc="next-generation telephony engine"
    arch=('i686' 'x86_64')
    url="http://yate.null.ro"
    license=('GPL')
    depends=('speex' 'gsm' 'postgresql-libs' 'libmysqlclient' \
             'alsa-lib')
    makedepends=('pkgconfig')
    source=(http://yate.null.ro/tarballs/yate4/${pkgname}-${pkgver}-1.tar.gz yate.init)
    options=(!makeflags)
    
    md5sums=('06adaa9b8dc4f18908b35e9659ab9ad5'
         'c0d344607046c47c1d75ac23d323817a')
         
    build() {
      cd $srcdir/${pkgname}
      export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
      ./configure --prefix=/usr \
                  --sysconfdir=/etc \
                  --with-libpq \
                  --with-mysql \
                  --without-openh323   
      make    
    }
    
    package(){
      cd $srcdir/${pkgname}
      make DESTDIR=$pkgdir install
      install -D -m755 $srcdir/yate.init $pkgdir/etc/rc.d/yate
    }