aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpri/APKBUILD
blob: afb595d7848ab1062dc5a5c6fb05fd5706b71aa6 (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
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=libpri
pkgver=1.5.0
_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"

prepare() {
	cd "$_builddir"
	sed -i -e 's,^#include <sys/signal.h>$,#include <signal.h>,g' \
		pritest.c testprilib.c
}

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="d32bf834861d3b0d24f26b0ffb52e971  libpri-1.5.0.tar.gz"
sha256sums="ee224bc4aa65c54546bd09675c3f0b71817ce9e277332bce86989d8dcd556a24  libpri-1.5.0.tar.gz"
sha512sums="194e4b525e77a28665525e43a2d105d542fab242d3d21951574668bf4d14d90adeb4e0b18384eca1628d75a16d89c8b1e6577e30542d77dd5dfd3d6f4d60ed3a  libpri-1.5.0.tar.gz"