aboutsummaryrefslogtreecommitdiffstats
path: root/main/dahdi-tools/APKBUILD
blob: 81c5fd542756141f284f685d83b3c603f17d5d97 (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
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=dahdi-tools
pkgver=2.6.1
pkgrel=2
pkgdesc="Digium Asterisk Hardware Device Interface management utilities"
url="http://www.asterisk.org"
arch="all"
license="GPL"
depends=""
depends_dev="linux-headers dahdi-linux-dev newt-dev"
makedepends="perl $depends_dev"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.digium.com/pub/telephony/dahdi-tools/releases/$pkgname-$pkgver.tar.gz
	$pkgname.initd"

builddir="$srcdir"/$pkgname-$pkgver

build() {
	cd "$builddir"
	update_config_guess || return 1
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	sed -i -e 's/$(CC) $(LDFLAGS) -o $@ $^/$(CC) $^ $(LDFLAGS) -o $@/' \
		Makefile
	make || return 1
}

package() {
	cd "$builddir"
	eval local `perl -V:vendorlib`
	make -j1 DESTDIR="$pkgdir" PERLLIBDIR="$vendorlib" install
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/dahdi
}

md5sums="c2e4f476a8e7f96a5cad46dd9b648446  dahdi-tools-2.6.1.tar.gz
37d605b72a52cc81043b9e5726ec77a3  dahdi-tools.initd"
sha256sums="c12b542be98507915d9c2baae6b376575a11655d50750ef03d0c312171a1badb  dahdi-tools-2.6.1.tar.gz
01648a0b78cfb1cfd749d030da989d31b30ee5060495136d4c52fec93c851b84  dahdi-tools.initd"
sha512sums="d00707d30407952162402c0c77610b74d8e5aef73501b4f0db2a41b5e5698914725776ce6abd4a3fffc2a509245b7b0b95da8bb32112e939f3bed4d72c3b897f  dahdi-tools-2.6.1.tar.gz
3850ab9e323ec31d676d311c97d0cde70b809379b6c01c8ff6d5a01a860eb43bf3f18f2de53e952365d17f40638c7cb0481682d96cea5b7fdb1423d3e762e2f3  dahdi-tools.initd"