updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / iaxmodem / PKGBUILD
blob164af78adb0ff95ae1c6dd65e1432c25737de626
1 # Maintainer: Xavier Devlamynck <magicrhesus@ouranos.be>
2 # Contributor: Joel Bryan Juliano <jbjuliano@8layertech.com> 
4 pkgname=iaxmodem
5 pkgver=1.2.0
6 pkgrel=1
7 pkgdesc="IAXModem is a software-based modem"
8 url="http://sourceforge.net/projects/iaxmodem"
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 install=iaxmodem.install
12 depends=('libtiff')
13 source=('http://downloads.sourceforge.net/project/iaxmodem/iaxmodem/iaxmodem-1.2.0/iaxmodem-1.2.0.tar.gz'
14         iaxmodem.init.arch
15         iaxmodem.logrotate
16         optimization-flags.patch
17         ttyIAX0.conf)
19 md5sums=('f8b26cfeed188e5c1dcbc5ae5ef923b3'
20          '484a779c3fd38ef12f8bff5cf2141e47'
21          '4e3c2a4901bccad3faf5c9662f76e347'
22          '215fde1e3ecd7d124f25ea1d7f6bdbb8'
23          '3514ecf82549b9441dda529ffbefce3e')
25 build() {
26         cd ${srcdir}/${pkgname}-${pkgver}
27         patch -p1 < ${srcdir}/optimization-flags.patch
28         cd ${srcdir}/${pkgname}-${pkgver}
29         ./configure --prefix=/usr
30         make
33 package() {
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