aboutsummaryrefslogtreecommitdiffstats
path: root/main/iaxmodem/APKBUILD
blob: f1f2b21c3a2adfcb9736b44c4db8f72a782b5001 (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
# Contributor: Cameron Banta <cbanta@gmail.com>
# Maintainer: Cameron Banta <cbanta@gmail.com>
pkgname=iaxmodem
pkgver=1.2.0
pkgrel=1
pkgdesc="Softmodem for hylafax that connects to VOIP gateway with IAX"
url="http://iaxmodem.sourceforge.net/"
license="GPL"
depends="uclibc tiff"
makedepends="tiff-dev"
install=
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	nocxx.patch"

build() {
	cd "$srcdir/$pkgname-$pkgver"

	# purge usless C++ check
	patch lib/libiax2/configure < ../nocxx.patch || return 1

	./configure
	make || return 1
	install -m755 -s -D "$srcdir/$pkgname-$pkgver/iaxmodem" \
		"$pkgdir/usr/sbin/iaxmodem"
	mkdir -p "$pkgdir/etc/iaxmodem"
	mkdir -p "$pkgdir/var/log/iaxmodem"

	#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
28513788ba4d556ccd538867dc6205ab  nocxx.patch"