# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=ortp pkgver=0.23.0 pkgrel=0 pkgdesc="A C library implementing the RTP protocol (RFC3550)" url="http://www.linphone.org/index.php/code_review/ortp" arch="all" license="LGPLv2+ VSL" depends="" makedepends="" install="" subpackages="$pkgname-dev" source="http://nongnu.askapache.com/linphone/ortp/sources/ortp-$pkgver.tar.gz " _builddir="$srcdir"/ortp-$pkgver prepare() { local i cd "$_builddir" update_config_sub || return 1 for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --disable-static \ --enable-ipv6 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="fb833cc7a66ec1a0c1b75016130e7e6d ortp-0.23.0.tar.gz" sha256sums="91a5ada15f62ce5f08beceef4d0adb65469211e2f208bd96e493a8df9f84fcdb ortp-0.23.0.tar.gz" sha512sums="70560168f1b138ad825e4e836e7ee218bd24b92a2d76666ba2794a4b31cadbdd8fdd40fee78d612187cde6a827005cbd836cdfc13a70947374356fb84a853ea4 ortp-0.23.0.tar.gz"