1 # Contributor: Luiz Paulo M. Pires <luizpaulo@myrealbox.com>
2 # Based on PKGBUILDs from CainĂ£ Costa <sryche@archlinux-br.org> and d'Ronin <daronin@2600.com>
3 # Use VERSIONPKG to update.
8 pkgdesc="Zaptel Interface Library"
9 url="http://downloads.digium.com/pub/telephony/zaptel/"
10 arch=('i686' 'x86_64')
13 backup=(etc/zaptel.conf)
14 makedepends=('automake' 'autoconf' 'subversion' 'kernel-headers')
15 provides=('zaptel=1.4.12.1')
17 source=(zaptel.rules zaptel.permissions ztcfg)
18 md5sums=('9dc01a7567cb55b1ec7a735de0d575f4'
19 '90dd920acf53845291b60ae852b6a169'
20 '4bfb330e8e0a165e9212c4ad3f6d4eab')
23 _svntrunk=http://svn.digium.com/svn/zaptel/branches/1.4/
28 msg "Connecting to $_svnmod SVN server...."
29 svn co $_svntrunk $_svnmod -r $pkgver
30 [ -d ./$_svnmod-build ] && rm -fr ./$_svnmod-build
31 cp -r ./$_svnmod ./$_svnmod-build
33 msg "SVN checkout done or server timeout"
34 msg "Starting make..."
36 #./autogen.sh || return 1
37 ./configure --prefix=/usr --sysconfdir=/etc --exec-prefix=/usr || return 1
38 make VERBOSE=1 || return 1
39 make DESTDIR=$pkgdir install || return 1
40 make DESTDIR=$pkgdir config || return 1
42 mkdir -p $pkgdir/usr/bin
43 cp {fxotune,ztmonitor,zttest} $pkgdir/usr/bin
44 rm -r $pkgdir/etc/udev
46 install -D -m644 $startdir/src/zaptel.rules \
47 $pkgdir/etc/udev/rules.d/zaptel.rules
48 install -D -m644 $startdir/src/zaptel.permissions \
49 $pkgdir/etc/udev/permissions.d/zaptel.permissions
50 install -D -m755 ztcfg $pkgdir/sbin/ztcfg
51 install -D -m755 $startdir/src/ztcfg \
52 $pkgdir/etc/rc.d/ztcfg