summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-03-04 08:38:34 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-03-04 09:20:04 +0000
commitcc2d85dd0e6f6807d9bbd8b47a7672cef0b1bf19 (patch)
treead315562e7bce1ff88d93a99305d6accce8c3966
parent5b635682d76c89cc99668e5b8bd7bb4cdb0c9f4c (diff)
downloadaports-cc2d85dd0e6f6807d9bbd8b47a7672cef0b1bf19.tar.bz2
aports-cc2d85dd0e6f6807d9bbd8b47a7672cef0b1bf19.tar.xz
main/rtmpdump: upgrade to 2.4_git20130304 and split out librtmp
also fix depends for -dev package
-rw-r--r--main/rtmpdump/APKBUILD32
1 files changed, 25 insertions, 7 deletions
diff --git a/main/rtmpdump/APKBUILD b/main/rtmpdump/APKBUILD
index 27866f6c9..551db4592 100644
--- a/main/rtmpdump/APKBUILD
+++ b/main/rtmpdump/APKBUILD
@@ -1,22 +1,31 @@
-# Contributor: Carlo Landmetere
+# Contributor: Carlo Landmeter
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=rtmpdump
-pkgver=2.4
+verbase=2.4
+pkgver=2.4_git20130304
pkgrel=0
pkgdesc="A tool to download rtmp:// and rtmpe:// streams"
url="http://rtmpdump.mplayerhq.hu/"
arch="all"
license="GPL"
depends=
-makedepends="openssl-dev"
-subpackages="$pkgname-dev $pkgname-doc"
-source="ftp://ftp.archlinux.org/other/rtmpdump/rtmpdump-${pkgver}.tar.xz"
+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"
- sed -i 's/^install_so.0:.*/& install_base/' librtmp/Makefile
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
}
build() {
@@ -30,4 +39,13 @@ package() {
}
-md5sums="e22c043df488c716b3eda36204649c06 rtmpdump-2.4.tar.xz"
+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"
+sha256sums="2022929fde03d2b097b330d2283349460e77c8fa097a117bf35f5aa4bf22151e rtmpdump-2.4_git20130304.tar.gz"
+sha512sums="05f0698e62a2bde3be642e2a6fc9ced5ef89f7a1e4d5ab879805859e9f484ec0550694a9dd637d45b339311bbca2f81dfe9d913f774c201ff042511d909f0eb2 rtmpdump-2.4_git20130304.tar.gz"