# Contributor: Cameron Banta # Contributor: Mika Havela # Maintainer: Cameron Banta pkgname=iaxmodem pkgver=1.3.4 pkgrel=0 pkgdesc="Softmodem for hylafax that connects to VOIP gateway with IAX" url="https://iaxmodem.sourceforge.net/" arch="all" license="GPL-2.0-or-later" options="!check" # no tests makedepends="tiff-dev" subpackages="$pkgname-dbg $pkgname-doc $pkgname-openrc" source="https://downloads.sourceforge.net/iaxmodem/iaxmodem-$pkgver.tar.gz iaxmodem-fix.patch fix-printf.patch $pkgname.confd $pkgname.initd " prepare() { update_config_sub update_config_guess default_prepare } build() { ./configure make } package() { install -m755 -s -D "$srcdir/$pkgname-$pkgver/iaxmodem" \ "$pkgdir/usr/sbin/iaxmodem" mkdir -p "$pkgdir/etc/iaxmodem" mkdir -p "$pkgdir/var/log/iaxmodem" install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname #library licenses install -m644 -D "$srcdir/$pkgname-$pkgver/lib/libiax2/COPYING" \ "$pkgdir"/usr/share/licenses/$pkgname/libiax2.COPYING install -m644 -D "$srcdir/$pkgname-$pkgver/lib/libiax2/COPYING.LIB" \ "$pkgdir"/usr/share/licenses/$pkgname/libiax2.COPYING.LIB install -m644 -D "$srcdir/$pkgname-$pkgver/lib/spandsp/COPYING" \ "$pkgdir"/usr/share/licenses/$pkgname/libspandsp.COPYING #docs install -m644 -D "$srcdir/$pkgname-$pkgver/README" \ "$pkgdir/usr/share/doc/$pkgname/README" install -m644 -D "$srcdir/$pkgname-$pkgver/FAQ" \ "$pkgdir/usr/share/doc/$pkgname/FAQ" install -m644 -D "$srcdir/$pkgname-$pkgver/iaxmodem-cfg.ttyIAX" \ "$pkgdir/usr/share/doc/$pkgname/iaxmodem-cfg.ttyIAX" install -m644 -D "$srcdir/$pkgname-$pkgver/iaxmodem.init.debian" \ "$pkgdir/usr/share/doc/$pkgname/iaxmodem.init.debian" install -m644 -D "$srcdir/$pkgname-$pkgver/config.ttyIAX" \ "$pkgdir/usr/share/doc/$pkgname/config.ttyIAX" } sha512sums=" 5765f42918964e944c2b8031cccffae25287e9a6b333467d8fbabb69b1dbe9b6153077bc8fdcf867de5ad28bfebba835431dbe07d866e74a558fcfc530827ea8 iaxmodem-1.3.4.tar.gz 999ba9d554ffa8ecb00b4e18b2e25d0c077a64560985ffc035fe89dedf7ff9686c347aba16a0bc05ad9a4d11e17b9ddad3b99772b2b61e1fcaea00c63bcbb897 iaxmodem-fix.patch dbc2e72fcf6d45f471343d46a788e1c5d7fe20d88b2c73b45604f368b6dcabc59731542ba1758567fc6bae90a6b092323ff61730986edf7791c6b29cf84392a5 fix-printf.patch c5b01eecd8048a99777c0265bc31cd8dcafa7ab2b30798500ec52e759f4ad97ffc13e8e72ad3018e9cd77b2acefdbbe7125b0b0d7f7cefd4ab6d764c690c89a1 iaxmodem.confd 5e62ae6ea099db21e5f3ce319a28b3e6a9da1a2283fd29404126b486209119cfcf32628e9d3f3323522db30dbf052378f654f9498cd1ae75a447d44005b1f587 iaxmodem.initd "