aboutsummaryrefslogtreecommitdiffstats
path: root/main/iaxmodem/APKBUILD
blob: 19f0cc4b488c7b0a34fd9fddbbce8e273e384e6e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Contributor: Cameron Banta <cbanta@gmail.com>
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=iaxmodem
pkgver=1.3.0
pkgrel=0
pkgdesc="Softmodem for hylafax that connects to VOIP gateway with IAX"
url="http://iaxmodem.sourceforge.net/"
arch="all"
license="LGPL+"
depends=""
depends_dev=""
makedepends="$depends_dev tiff-dev"
install=""
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	iaxmodem-fix.patch
	config.guess
	config.sub
	$pkgname.confd
	$pkgname.initd"

builddir=$srcdir/$pkgname-$pkgver

prepare() {
	cd "$builddir"
        for i in . lib/spandsp/config lib/libiax2; do
		cp $srcdir/config.guess $srcdir/config.sub $i
	done
	default_prepare || return 1
}

build() {
	cd "$builddir"
	./configure || return 1
	make || return 1
}

package() {
	cd "$builddir"
	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="3add8fe1c228ee63f12a3d23fcc8bad5405b9fa6af70cadbcdb276d4e7dfe2a90f1b7c300d35659ab0247010c2315e25a5def5715e670071226bd89271d004f4  iaxmodem-1.3.0.tar.gz
999ba9d554ffa8ecb00b4e18b2e25d0c077a64560985ffc035fe89dedf7ff9686c347aba16a0bc05ad9a4d11e17b9ddad3b99772b2b61e1fcaea00c63bcbb897  iaxmodem-fix.patch
ec32c1c81a460033d1b419292f408974409d08cfc754af92ca5af303cc848fc5dc3a019028c6724346e96ab5d600519862fd9a2c3f01ae6cf7139ff377de4b80  config.guess
fb999aada492f963fdf86184629a7351e5ff3adac6f4707a2d150ae18cea02478b4ebcb1d2d0bd11698ed74415d2a73bc07d8c0d96a5035bd567d2738fa73128  config.sub
c5b01eecd8048a99777c0265bc31cd8dcafa7ab2b30798500ec52e759f4ad97ffc13e8e72ad3018e9cd77b2acefdbbe7125b0b0d7f7cefd4ab6d764c690c89a1  iaxmodem.confd
5e62ae6ea099db21e5f3ce319a28b3e6a9da1a2283fd29404126b486209119cfcf32628e9d3f3323522db30dbf052378f654f9498cd1ae75a447d44005b1f587  iaxmodem.initd"