updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / asterisk-svn / PKGBUILD
blob1d1ec767ad79fc71e65677e2ca740b80934c3f69
1 # Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
3 pkgname=asterisk-svn
4 pkgver=278579
5 pkgrel=2
6 pkgdesc="A complete PBX solution"
7 arch=('i686' 'x86_64')
8 groups=()
9 url="http://www.asterisk.org"
10 license=('GPL2')
11 depends=('libusb' 'libxml2' 'openssl' 'curl' 'gmime' 'iksemel' 'libldap' 'net-snmp' 'postgresql-libs' 'speex' 'sqlite3' 'libcap' 'libvorbis' 'libcap' 'unixodbc' 'libnewt' 'libresample' 'alsa-lib' 'popt' 'net-snmp')
12 optdepends=('radiusclient-ng' 'libpri' 'dahdi')
13 makedepends=('svn')
14 conflicts=('asterisk' 'asterisk16' 'asterisk18')
15 provides=()
16 options=()
17 source=()
18 md5sums=()
19 backup=('etc/asterisk/adsi.conftru' 'etc/asterisk/agents.conf' 'etc/asterisk/ais.conf'
20   'etc/asterisk/alarmreceiver.conf' 'etc/asterisk/alsa.conf' 'etc/asterisk/amd.conf'
21   'etc/asterisk/app_mysql.conf' 'etc/asterisk/asterisk.conf' 'etc/asterisk/calendar.conf'
22   'etc/asterisk/ccss.conf' 'etc/asterisk/cdr_adaptive_odbc.conf' 'etc/asterisk/cdr.conf'
23   'etc/asterisk/cdr_custom.conf' 'etc/asterisk/cdr_manager.conf' 'etc/asterisk/cdr_mysql.conf'
24   'etc/asterisk/cdr_odbc.conf' 'etc/asterisk/cdr_pgsql.conf' 'etc/asterisk/cdr_sqlite3_custom.conf'
25   'etc/asterisk/cdr_syslog.conf' 'etc/asterisk/cdr_tds.conf' 'etc/asterisk/cel_adaptive_odbc.conf'
26   'etc/asterisk/cel.conf' 'etc/asterisk/cel_custom.conf' 'etc/asterisk/cel_pgsql.conf'
27   'etc/asterisk/cel_sqlite3_custom.conf' 'etc/asterisk/cel_tds.conf' 'etc/asterisk/chan_dahdi.conf'
28   'etc/asterisk/chan_mobile.conf' 'etc/asterisk/chan_ooh323.conf' 'etc/asterisk/cli_aliases.conf'
29   'etc/asterisk/cli.conf' 'etc/asterisk/cli_permissions.conf' 'etc/asterisk/codecs.conf'
30   'etc/asterisk/console.conf' 'etc/asterisk/dbsep.conf' 'etc/asterisk/dnsmgr.conf'
31   'etc/asterisk/dsp.conf' 'etc/asterisk/dundi.conf' 'etc/asterisk/enum.conf'
32   'etc/asterisk/extconfig.conf' 'etc/asterisk/extensions.conf' 'etc/asterisk/extensions_minivm.conf'
33   'etc/asterisk/features.conf' 'etc/asterisk/festival.conf' 'etc/asterisk/followme.conf'
34   'etc/asterisk/func_odbc.conf' 'etc/asterisk/gtalk.conf' 'etc/asterisk/h323.conf'
35   'etc/asterisk/http.conf' 'etc/asterisk/iax.conf' 'etc/asterisk/iaxprov.conf'
36   'etc/asterisk/indications.conf' 'etc/asterisk/jabber.conf' 'etc/asterisk/jingle.conf'
37   'etc/asterisk/logger.conf' 'etc/asterisk/manager.conf' 'etc/asterisk/meetme.conf'
38   'etc/asterisk/mgcp.conf' 'etc/asterisk/minivm.conf' 'etc/asterisk/misdn.conf'
39   'etc/asterisk/modules.conf' 'etc/asterisk/musiconhold.conf' 'etc/asterisk/muted.conf'
40   'etc/asterisk/osp.conf' 'etc/asterisk/oss.conf' 'etc/asterisk/phone.conf'
41   'etc/asterisk/phoneprov.conf' 'etc/asterisk/queuerules.conf' 'etc/asterisk/queues.conf'
42   'etc/asterisk/res_config_mysql.conf' 'etc/asterisk/res_config_sqlite.conf' 'etc/asterisk/res_fax.conf'
43   'etc/asterisk/res_ldap.conf' 'etc/asterisk/res_odbc.conf' 'etc/asterisk/res_pgsql.conf'
44   'etc/asterisk/res_pktccops.conf' 'etc/asterisk/res_snmp.conf' 'etc/asterisk/rpt.conf'
45   'etc/asterisk/rtp.conf' 'etc/asterisk/say.conf' 'etc/asterisk/sip.conf' 'etc/asterisk/sip_notify.conf'
46   'etc/asterisk/skinny.conf' 'etc/asterisk/sla.conf' 'etc/asterisk/smdi.conf' 'etc/asterisk/udptl.conf'
47   'etc/asterisk/unistim.conf' 'etc/asterisk/usbradio.conf' 'etc/asterisk/users.conf'
48   'etc/asterisk/voicemail.conf' 'etc/asterisk/vpb.conf')
50 _svntrunk="http://svn.asterisk.org/svn/asterisk/trunk"
51 _svnmod="asterisk"
53 build() {
54    cd $srcdir
56   msg "Connecting to $_svntrunk..."
57   svn checkout $_svntrunk $_svnmod
58   msg "SVN checkout done..."
60   cp -r $_svnmod $_svnmod-build
61   cd $_svnmod-build
63   msg "Configuring..."
64   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
65   make menuconfig
67   msg "Building..."
68   make
70   msg "Installing..."
71   make DESTDIR=$pkgdir install
73   msg "Installing samples..."
74   make DESTDIR=$pkgdir samples
76   # Cleaning build directory
77   rm -r $srcdir/$_svnmod-build
80 # vim:set ts=2 sw=2 et: