aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pjproject/APKBUILD
blob: 363d7616ead47d71e59767bb774cfe8587065a80 (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pjproject
pkgver=1.4
pkgrel=0
pkgdesc="CLI Softphone"
url="http://www.pjsip.org/pjsua.htm"
license="GPL"
depends=
makedepends="uclibc++-dev 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"
	export CXX=${CXX_UC:-g++-uc}

	./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
	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="c5abd0d764d89788d817d449141e45a6  pjproject-1.4.tar.bz2"