aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtmpdump/APKBUILD
blob: fd7d75eece116bef0c9a702e2ca4bc888e399aa8 (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
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rtmpdump
verbase=2.4
pkgver=2.4_git20130304
pkgrel=2
pkgdesc="A tool to download rtmp:// and rtmpe:// streams"
url="http://rtmpdump.mplayerhq.hu/"
arch="all"
license="GPL"
depends=
depends_dev="zlib-dev openssl-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc librtmp"

giturl="git://git.ffmpeg.org/rtmpdump"
disturl="dev.alpinelinux.org:/archive/rtmpdump"
source="http://dev.alpinelinux.org/archive/rtmpdump/rtmpdump-${pkgver}.tar.gz
	akamai1.patch
	akamai2.patch"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	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"
	make || return 1 
}

package() {
	cd "$_builddir"
	make -j1 prefix=/usr MANDIR="$pkgdir/usr/share/man" DESTDIR="$pkgdir" install

}

librtmp() {
	pkgdesc="Real Time Messaging Protocol (RTMP) library"
	replaces="rtmpdump"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
}

md5sums="bcf4d0c3b8f34aedc29eb6283f97b1e7  rtmpdump-2.4_git20130304.tar.gz
3788679684481c05d544c2264236cd21  akamai1.patch
c9c0d09778fd781596affb6f950af9e3  akamai2.patch"
sha256sums="2022929fde03d2b097b330d2283349460e77c8fa097a117bf35f5aa4bf22151e  rtmpdump-2.4_git20130304.tar.gz
d0261408b0093cfc2a3a0202adcf5a9d24b5241c792d40a81018f9cc56f133d6  akamai1.patch
fb0821c1502099f0bc50cabd260e08c1298a31f1f6345d60407233c66994a435  akamai2.patch"
sha512sums="05f0698e62a2bde3be642e2a6fc9ced5ef89f7a1e4d5ab879805859e9f484ec0550694a9dd637d45b339311bbca2f81dfe9d913f774c201ff042511d909f0eb2  rtmpdump-2.4_git20130304.tar.gz
37d433925cef893de38ad69250ae42ec148272e817d1ad8a4a12b608431fb35dbdf5687a524be6b65fa7a2a6b05146c0fbedaad0ebbd48248f5863ea817311ed  akamai1.patch
8bfd526e8f53ff2505a56dbc5b1f9596ab838ebb996845b3d1005f0a0125e5e5775717dd1b1ea854a1f9fa5bb7608325fd972905b1b4c991d07880c38097b8c8  akamai2.patch"