aboutsummaryrefslogtreecommitdiffstats
path: root/main/pjproject/APKBUILD
blob: a807ebf6724437723c34b14bf384171c63bde4da (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=pjproject
pkgver=1.10
pkgrel=0
pkgdesc="CLI Softphone"
url="http://www.pjsip.org/pjsua.htm"
arch="all"
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="e215d0637d3422d49a63c2cde6673951  pjproject-1.10.tar.bz2"