aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtpproxy/APKBUILD
blob: 82b8772fb16b48b08a011510bef7e70b51acb310 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rtpproxy
pkgver=2.0.0
pkgrel=2
pkgdesc="RTP proxy"
url="http://www.rtpproxy.org"
arch="all"
license="BSD"
depends=
depends_dev=
makedepends="$depends_dev libsndfile-dev"
install="$pkgname.pre-install"
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
	prevent-pthread-from-running-macro.patch
	rtpproxy.confd
	rtpproxy.initd"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	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 \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		|| return 1
	make || return 1
}

debug() {
	pkgdesc="Debug version of rtpproxy"
	mkdir -p "$subpkgdir"/usr/bin
	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"
	make DESTDIR="$pkgdir" install || return 1
	install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
	install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
}

md5sums="8d36fcc1dd93994ac5376d145f19ac73  rtpproxy-2.0.0.tar.gz
620786b8d8460446fc1a59c6b49a1351  musl-fix-headers.patch
9c915ff8c04976304394febe5fceeccc  define-byte-order.patch
118c66428b994a8340c2bed05355ef0d  prevent-pthread-from-running-macro.patch
aee99ab9f380cd0b43754ae658f26c92  rtpproxy.confd
339df46a13cce145dfc9f26cd585f695  rtpproxy.initd"
sha256sums="b52bf2a302a8f08c269217e5d507f3c3ba38f4b627bb7029c8dac8ec268b23c6  rtpproxy-2.0.0.tar.gz
de8f7bca9ed93e1dab34d3c48f9792be525277a5a6df60a829ba6c6769449ac0  musl-fix-headers.patch
342d30d1c24fd0b5d2d697591405aefdf4fbc372877bf63a4dc76f60b88ac50b  define-byte-order.patch
1cd9c7794c9da256f0eb69eb7476ab939479111320a664602f6b39c11ef0f50d  prevent-pthread-from-running-macro.patch
0b956e60a4fb27140d88c2182537615f524e167e6b608a9c9782bbf781791e1d  rtpproxy.confd
c499e6bfc3741d34dce67631a071219aefab9c9c5afb951cb645383e8b908019  rtpproxy.initd"
sha512sums="d3991643e1e260890ec284a5cb0bacac012063512667215166551a1d534921caa035ab64452e2be7837b306ce4486cc604a9bb552254913f3a920d7756ad3711  rtpproxy-2.0.0.tar.gz
bd05f24bfa66cd9491135efe341359cc4b16b80fd9c45fbfc880c7a82ba53ad5f2317dd6bfbaecfd0dd42ba0d54a55041403ba6409b8deff568fcb095892956d  musl-fix-headers.patch
8ab21c20ee87c0d9ef9a113b436eaecd34d93c596d761b2f4b8d746c34946acb41421ab24be6446dd2ad2c0c3e1cd894637d945e945a90e1af1eda091d91306f  define-byte-order.patch
ba54855fd147c8f166939b37a18c0576c55481c762c3f5b9e0ffa45e00eedeeaabb1d3fd4e45fe8f59f43064ecd852d87f83bcc8f746923219e9e3a795cf592e  prevent-pthread-from-running-macro.patch
e2ab3705329ffd10a8a5723ac3a07a2f98547f29b7055e1616ebbd141d6beff9c81d44579af9f3486f7835a7ac7228ecfe49cf09208438ed490843c6b100a104  rtpproxy.confd
84f05c765369aa5ef747361e57c557b2560ac734225f5aad99ba28f4178a73d2c937a316fa45f0d42cab27b1c9d033019d98ec67601f0b272b9b45c9196bf2fb  rtpproxy.initd"