2 # Created by: Joel Bryan Juliano <jbjuliano@8layertech.com>,
3 # <joelbryan.juliano@gmail.com>
5 # This package is part of 8ix Zenith CE project.
6 # For more information, visit http://www.8layertech.com
9 pkgname=$_realpkgname-8layertech
12 pkgdesc="IAXModem is a software-based modem (With SSE2 & MMX Optimizations)"
13 url="http://sourceforge.net/projects/iaxmodem"
14 arch=('i686' 'x86_64')
16 install=iaxmodem.install
18 backup=(etc/iaxmodem/modem.conf)
19 source=(http://nchc.dl.sourceforge.net/sourceforge/iaxmodem/$_realpkgname-$pkgver.tar.gz
22 optimization-flags.patch
25 md5sums=('f8b26cfeed188e5c1dcbc5ae5ef923b3'
26 '484a779c3fd38ef12f8bff5cf2141e47'
27 '4e3c2a4901bccad3faf5c9662f76e347'
28 '215fde1e3ecd7d124f25ea1d7f6bdbb8'
29 '38b9f08b30f1cccac8cd144342839f1e')
32 mkdir -p $pkgdir/var/log/iaxmodem
33 mkdir -p $pkgdir/etc/logrotate.d
34 mkdir -p $pkgdir/etc/iaxmodem
35 mkdir -p $pkgdir/usr/share/man/man1
36 mkdir -p $pkgdir/usr/share/iaxmodem
37 mkdir -p $pkgdir/usr/sbin
38 mkdir -p $pkgdir/etc/rc.d
39 mkdir -p $pkgdir/var/spool/uucp
41 cd $srcdir/iaxmodem-1.2.0 && patch -p1 < $srcdir/optimization-flags.patch
42 cd $srcdir/iaxmodem-1.2.0 && ./configure --prefix=/usr && make
43 gzip $srcdir/iaxmodem-1.2.0/iaxmodem.1
45 install $srcdir/modem.conf $pkgdir/etc/iaxmodem
46 install $srcdir/iaxmodem-1.2.0/config.ttyIAX $pkgdir/usr/share/iaxmodem
47 install $srcdir/iaxmodem-1.2.0/iaxmodem-cfg.ttyIAX $pkgdir/usr/share/iaxmodem
48 install $srcdir/iaxmodem-1.2.0/iaxmodem.inf $pkgdir/usr/share/iaxmodem
49 install $srcdir/iaxmodem-1.2.0/iaxmodem.1.gz $pkgdir/usr/share/man/man1
51 install -m 755 $srcdir/iaxmodem-1.2.0/iaxmodem $pkgdir/usr/sbin
52 install -m 755 $srcdir/iaxmodem.init.arch $pkgdir/etc/rc.d/iaxmodem
53 install $srcdir/iaxmodem.logrotate $pkgdir/etc/logrotate.d/iaxmodem