summaryrefslogtreecommitdiffstats
path: root/main/iaxmodem/APKBUILD
blob: dc6184a9aea7d6c04c7c85511e09cd4d0da95695 (plain)
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
80
81
# Contributor: Cameron Banta <cbanta@gmail.com>
# Contributor: Mika Havela <mika.havela@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=iaxmodem
pkgver=1.2.0
pkgrel=5
pkgdesc="Softmodem for hylafax that connects to VOIP gateway with IAX"
url="http://iaxmodem.sourceforge.net/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev tiff-dev"
install=""
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	$pkgname.confd
	$pkgname.initd"

_builddir=$srcdir/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure
	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"

}


md5sums="f8b26cfeed188e5c1dcbc5ae5ef923b3  iaxmodem-1.2.0.tar.gz
d00821bb80d8cba07d0a9b89b2423ce1  iaxmodem.confd
ca3f236df5776b4de05eeac2450754f1  iaxmodem.initd"
sha256sums="fa263c0df0870cb8133c4bee141146ca5db47ece6db50899a6acf508d76591ed  iaxmodem-1.2.0.tar.gz
80ddf9a1607f45cc93c309d0174d8a2ddc9514ca328c5551ac33f109d24decbf  iaxmodem.confd
df530bcc7105d80b7503c19419f3a37e787b15b2f8720be64f6c37f66ea7a0b3  iaxmodem.initd"
sha512sums="53b66a0977366541ffaa743fcbefa11c20eb9ea7182245a1d11bc7fd015d98a4ec8086b3cb85b8de84f63d67221bccb1a868fe9f0a603de600023ea158909707  iaxmodem-1.2.0.tar.gz
c5b01eecd8048a99777c0265bc31cd8dcafa7ab2b30798500ec52e759f4ad97ffc13e8e72ad3018e9cd77b2acefdbbe7125b0b0d7f7cefd4ab6d764c690c89a1  iaxmodem.confd
f3443bd53fdb8b394a58cf84ebd3cf808d46f02337942e9bdd1c73b1af668c9ebccc1325d27ae098c161ae0bab8860c709d87e11ac834d8079650dfb53bb1a36  iaxmodem.initd"