summaryrefslogtreecommitdiffstats
path: root/extra/iaxmodem/APKBUILD
blob: 86ca156f2566b5660569a763ccda1b061a90f3b9 (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=0
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 $pkgname-dev"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

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

	./configure
	make || return 1
	install -m755 -s -D "$srcdir/$pkgname-$pkgver/iaxmodem" \
		"$pkgdir/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"

	# install -m755 -D "$srcdir"/$pkgname.initd \
	#	"$pkgdir"/etc/init.d/$pkgname
	# install -m644 -D "$srcdir"/$pkgname.confd \
	#	"$pkgdir"/etc/conf.d/$pkgname
}

md5sums="f8b26cfeed188e5c1dcbc5ae5ef923b3  iaxmodem-1.2.0.tar.gz"