aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpri/APKBUILD
blob: 72b0a17cb5b9d8831383044eb68d7c0e25248ba5 (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
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=libpri
pkgver=1.4.13
_pkgver=$pkgver
pkgrel=0
pkgdesc="Primary Rate ISDN (PRI) library"
url="http://www.asterisk.orig"
arch="all"
license="GPL"
depends=""
makedepends="dahdi-linux-dev dahdi-tools-dev"
install=
subpackages="$pkgname-dev"
source="http://downloads.digium.com/pub/telephony/libpri/releases/$pkgname-$_pkgver.tar.gz"

_builddir="$srcdir/$pkgname-$_pkgver"

build() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg "$i"; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done

	make LDCONFIG="echo" || return 1
}

package() {
	cd "$_builddir"
	make LDCONFIG="echo" INSTALL_PREFIX="$pkgdir" install
}

md5sums="275ce1d772f7efd28075e479411bbdeb  libpri-1.4.13.tar.gz"