1 # Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
2 # Contributor: Joel Bryan Juliano <jbjuliano@8layertech.com>
7 pkgdesc="IAXModem is a software-based modem"
8 url="http://sourceforge.net/projects/iaxmodem"
11 install=iaxmodem.install
13 source=('http://downloads.sourceforge.net/project/iaxmodem/iaxmodem/iaxmodem-1.2.0/iaxmodem-1.2.0.tar.gz'
16 optimization-flags.patch
19 md5sums=('f8b26cfeed188e5c1dcbc5ae5ef923b3'
20 '484a779c3fd38ef12f8bff5cf2141e47'
21 '4e3c2a4901bccad3faf5c9662f76e347'
22 '215fde1e3ecd7d124f25ea1d7f6bdbb8'
23 '3514ecf82549b9441dda529ffbefce3e')
26 cd ${srcdir}/${pkgname}-${pkgver}
27 patch -p1 < ${srcdir}/optimization-flags.patch
28 cd ${srcdir}/${pkgname}-${pkgver}
29 ./configure --prefix=/usr
34 mkdir -p ${pkgdir}/etc/iaxmodem
35 mkdir -p ${pkgdir}/etc/logrotate.d
36 mkdir -p ${pkgdir}/etc/rc.d
37 mkdir -p ${pkgdir}/usr/sbin
38 mkdir -p ${pkgdir}/usr/share/iaxmodem
39 mkdir -p ${pkgdir}/usr/share/man/man1
40 mkdir -p ${pkgdir}/var/log/iaxmodem
41 mkdir -p ${pkgdir}/var/spool/uucp
43 install ${srcdir}/ttyIAX0.conf ${pkgdir}/etc/iaxmodem
44 install ${srcdir}/${pkgname}-${pkgver}/config.ttyIAX ${pkgdir}/usr/share/iaxmodem
45 install ${srcdir}/${pkgname}-${pkgver}/iaxmodem-cfg.ttyIAX ${pkgdir}/usr/share/iaxmodem
46 install ${srcdir}/${pkgname}-${pkgver}/iaxmodem.inf ${pkgdir}/usr/share/iaxmodem
47 gzip -f ${srcdir}/${pkgname}-${pkgver}/iaxmodem.1
48 install ${srcdir}/${pkgname}-${pkgver}/iaxmodem.1.gz ${pkgdir}/usr/share/man/man1
50 install -m 755 ${srcdir}/${pkgname}-${pkgver}/iaxmodem ${pkgdir}/usr/sbin
51 install -m 755 ${srcdir}/iaxmodem.init.arch ${pkgdir}/etc/rc.d/iaxmodem
52 install ${srcdir}/iaxmodem.logrotate ${pkgdir}/etc/logrotate.d/iaxmodem