aboutsummaryrefslogtreecommitdiffstats
path: root/main/pjproject/APKBUILD
blob: 77722b13ddebb03f26e4fa5892269b748c46ba17 (plain) (blame)
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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pjproject
pkgver=1.6
pkgrel=1
pkgdesc="CLI Softphone"
url="http://www.pjsip.org/pjsua.htm"
license="GPL"
depends=
makedepends="openssl-dev pth-dev"
install=
subpackages="$pkgname-dev pjsua"
source="http://www.pjsip.org/release/$pkgver/$pkgname-$pkgver.tar.bz2"

build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --build=${CHOST:-i486-alpine-linux-uclibc} \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make -j1 dep || return 1
	make -j1 all || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make -j1 DESTDIR="$pkgdir" prefix=/usr install
}

pjsua() {
	pkgdesc="pjsua is an open source command line SIP user agent (softphone)"
	cd "$srcdir/$pkgname-$pkgver"/pjsip-apps/bin/
	install -D -m755 pjsua-${CHOST:-i486-alpine-linux-uclibc} \
		"$subpkgdir"/usr/bin/pjsua
}
		
	
md5sums="8e804c4930a5ee98a7a0ed2619c09b44  pjproject-1.6.tar.bz2"