Subject: [alpine-aports] [PATCH] main/rtpproxy

From: Nathan Angelacos <[email-masked]>
Date: Tue, 12 Apr 2016 00:42:24 +0000

create additional -tools package with extractaudio and makeann
---
 main/rtpproxy/APKBUILD | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/main/rtpproxy/APKBUILD b/main/rtpproxy/APKBUILD
index 92ba183..82b8772 100644
--- a/main/rtpproxy/APKBUILD
+++ b/main/rtpproxy/APKBUILD
@@ -2,16 +2,16 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=rtpproxy
 pkgver=2.0.0
-pkgrel=1
+pkgrel=2
 pkgdesc="RTP proxy"
 url="http://www.rtpproxy.org"
 arch="all"
 license="BSD"
 depends=
 depends_dev=
-makedepends="$depends_dev"
+makedepends="$depends_dev libsndfile-dev"
 install="$pkgname.pre-install"
-subpackages="$pkgname-doc $pkgname-debug"
+subpackages="$pkgname-doc $pkgname-debug $pkgname-tools"
 source="$pkgname-$pkgver.tar.gz::https://github.com/sippy/rtpproxy/archive/v${pkgver}.tar.gz
 	musl-fix-headers.patch
 	define-byte-order.patch
@@ -49,6 +49,13 @@ debug() {
 	mv "$pkgdir"/usr/bin/${pkgname}_debug "$subpkgdir"/usr/bin/
 }
 
+tools() {
+	pkgdesc="User tools for $pkgname"
+	mkdir -p "$subpkgdir"/usr/bin
+	for _a in extractaudio makeann; do
+		mv "$pkgdir"/usr/bin/$_a "$subpkgdir"/usr/bin/
+	done
+}
 
 package() {
 	cd "$_builddir"
-- 
2.7.4

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---