aboutsummaryrefslogtreecommitdiffstats
path: root/main/rtmpdump/APKBUILD
blob: d69e74fc51673444645b849f948913491e5249fc (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
# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rtmpdump
verbase=2.4
pkgver=2.4_git20141231
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"

_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="03c4c1fdfff2fc16f89c88097c2a132a  rtmpdump-2.4_git20141231.tar.gz"
sha256sums="f2c7309a9c58c9da9c310c830c9fcb09f6ed999b074c585b4c127ad9ecba1b39  rtmpdump-2.4_git20141231.tar.gz"
sha512sums="3029e7e6079b8ae444c60dee3dcabf637570a51d26d5ca546603fa1cf4e3f2c9f2a8e721a14e5710b13bd746ba73004f2ce3d46b3388b52cf5775b522d8b1eb6  rtmpdump-2.4_git20141231.tar.gz"