aboutsummaryrefslogtreecommitdiffstats
path: root/extra/libpri/APKBUILD
blob: d4d90a81038bbb4e50d7ba00d13592b6506ecddb (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
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=libpri
pkgver=1.4.9
pkgrel=1
pkgdesc="Primary Rate ISDN (PRI) library"
url="http://www.asterisk.orig"
license="GPL"
depends=""
makedepends=""
install=
subpackages="$pkgname-dev"
source="http://downloads.digium.com/pub/telephony/libpri/releases/$pkgname-$pkgver.tar.gz
	libpri-cflags.patch
	libpri-1.4.9-i14292.patch"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	for i in ../*.patch; do
		msg "Applying $i"
		patch -p1 < $i || return 1;
	done

	make LDCONFIG="echo" || return 1
	make LDCONFIG="echo" INSTALL_PREFIX="$pkgdir" install

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

md5sums="97332edeaa2de0320d85fda88afb96f9  libpri-1.4.9.tar.gz
8df2ca48ce7db4f1a8604b0904bc9394  libpri-cflags.patch
240e4057980c88f2c2576c5c25744c70  libpri-1.4.9-i14292.patch"