aboutsummaryrefslogtreecommitdiffstats
path: root/testing/crtmpserver
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-12-13 16:16:56 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-12-13 16:16:56 +0000
commitbd099333e5df452055077ddb01f23a3543e7e592 (patch)
tree712c46cf03ca818fc2e84c2b9e81da7778bf0c5f /testing/crtmpserver
parent71f46f8a42c960de865cdef55134d62b8c4a8001 (diff)
downloadaports-bd099333e5df452055077ddb01f23a3543e7e592.tar.bz2
aports-bd099333e5df452055077ddb01f23a3543e7e592.tar.xz
testing/crtmpserver: fixed checksum, git snapshot script uses bzip now
Diffstat (limited to 'testing/crtmpserver')
-rw-r--r--testing/crtmpserver/APKBUILD21
1 files changed, 11 insertions, 10 deletions
diff --git a/testing/crtmpserver/APKBUILD b/testing/crtmpserver/APKBUILD
index 97f8f22d73..cba4512b0c 100644
--- a/testing/crtmpserver/APKBUILD
+++ b/testing/crtmpserver/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Francesco Colista <francesco.colista@gmail.com>
-# Maintainer:
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=crtmpserver
-pkgver=20121120
+pkgver=0_git20121213
pkgrel=0
pkgdesc="high performance streaming server"
url="http://www.rtmpd.com/"
@@ -13,29 +13,30 @@ makedepends="$depends_dev"
install="$pkgname.pre-install"
subpackages=""
pkgusers="rtmpd"
-source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz
+source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.bz2
$pkgname.initd
$pkgname.confd"
_giturl="git://github.com/j0sh/crtmpserver.git"
_upload=dev.alpinelinux.org:/archive/$pkgname/
-_builddir="$srcdir"/$pkgname
+_builddir="$srcdir"/$pkgname-$pkgver
snapshot() {
local _date=$(date +%Y%m%d)
- local _pkg=$pkgname-$_date.tar.gz
+ local _pkg=$pkgname-0_git$_date.tar.bz2
mkdir -p "$srcdir"
cd "$srcdir"
rm -rf "$pkgname"
git clone --depth=1 --bare $_giturl || return 1
- git --git-dir ${_giturl##*/} archive -o $_pkg \
- --prefix=$pkgname-$_date/ HEAD \
+ git --git-dir ${_giturl##*/} archive --format=tar \
+ --prefix=$pkgname-0_git$_date/ HEAD | bzip2 > $_pkg \
|| return 1
- msg "New snapshot: $_pkg"
+
+msg "New snapshot: $_pkg"
if [ -n "$_upload" ]; then
msg "Uploading to $_upload"
- scp $_pkg $_upload && abump $pkgname-$_date || return 1
+ scp $_pkg $_upload && abump $pkgname-0_git$_date || return 1
fi
}
@@ -60,6 +61,6 @@ package() {
chown rtmpd "$pkgdir"/var/crtmpserver -R
}
-md5sums="3d71201ebfb3cfd423c8b8ac31260650 crtmpserver-20121120.tar.gz
+md5sums="ef55f9048d7dee7c259d12b837004731 crtmpserver-0_git20121213.tar.bz2
b8e5437128e18ea3d7ca4b892f1664d1 crtmpserver.initd
599eae04d8a7e49162dc9b89df66faa9 crtmpserver.confd"