# Contributor: Michael Mason # Maintainer: Natanael Copa pkgname=pjproject pkgver=1.6 pkgrel=0 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"