diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2012-12-04 21:28:47 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2012-12-04 21:28:47 +0100 |
commit | 41f4a4fd0d34919b820773f7183fb52a5c029e1f (patch) | |
tree | ccf3341d7cf90c4d7db97a80849d42efb84855c0 /testing | |
parent | 3eeccd6497a256815dec01fa046611a9e6dcd2c9 (diff) | |
download | aports-41f4a4fd0d34919b820773f7183fb52a5c029e1f.tar.bz2 aports-41f4a4fd0d34919b820773f7183fb52a5c029e1f.tar.xz |
testing/tvheadend-git: new snapshot
Diffstat (limited to 'testing')
-rw-r--r-- | testing/tvheadend-git/APKBUILD | 52 |
1 files changed, 24 insertions, 28 deletions
diff --git a/testing/tvheadend-git/APKBUILD b/testing/tvheadend-git/APKBUILD index bce95bc325..81262eba76 100644 --- a/testing/tvheadend-git/APKBUILD +++ b/testing/tvheadend-git/APKBUILD @@ -1,48 +1,43 @@ # Contributor: Francesco Colista <francesco.colista@gmail.com> # Maintainer: Francesco Colista <francesco.colista@gmail.com> pkgname=tvheadend-git -_date=20121122 -pkgver=$_date +pkgver=20121204 pkgrel=0 pkgdesc="TV Streaming server for linux" url="http://www.lonelycoder.com/hts/tvheadend_overview.html" arch="all" license="GPL3" depends="" -depends_dev="openssl-dev bash findutils" -makedepends="$depends_dev python" +depends_dev="openssl-dev libdvbcsa-dev" +makedepends="$depends_dev python findutils bash" pkgusers="$pkgname" pkggroups="$pkgname" install="$pkgname.pre-install" subpackages="$pkgname-doc" -source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$_date.tar.gz +source="http://dev.alpinelinux.org/archive/$pkgname/$pkgname-$pkgver.tar.gz $pkgname.initd $pkgname.confd" _giturl="git://github.com/tvheadend/tvheadend.git" -_upload=dev.alpinelinux.org:/archive/$pkgname/ -_builddir="$srcdir/$pkgname-$_date" +_upload="dev.alpinelinux.org:/archive/$pkgname/" +_builddir="$srcdir/$pkgname-$pkgver" snapshot() { - _date=$(date +%Y%m%d) - local _pkg=$pkgname-$_date.tar.gz - 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 \ - || return 1 - msg "New snapshot: $_pkg" - msg "Uploading to $_upload" - #scp -r $_pkg $_upload/$_pkg || return 1 - rsync -ave ssh $_pkg $_upload || return 1 - cd .. - sed -i -e "s/^_date=.*/_date=$_date/" \ - APKBUILD || return 1 - _dir=${PWD%/APKBUILD} - _dir=${_dir%/*} - abuild checksum && abuild -r && git add APKBUILD \ - && git commit -m"${_dir##*/}/$pkgname: snapshot $_date" + local _date=$(date +%Y%m%d) + local _pkg=$pkgname-$_date.tar.gz + mkdir -p "$srcdir" + cd "$srcdir" + msg "Creating snapshot: $_pkg" + rm -rf ${_giturl##*/} + git clone --depth=1 --bare $_giturl || return 1 + git --git-dir ${_giturl##*/} archive -o $_pkg \ + --prefix=$pkgname-$_date/ HEAD \ + || return 1 + msg "Uploading to $_upload" + rsync -Lave ssh $_pkg $_upload || return 1 + cd "$startdir" + sed -i -e "s/^pkgver=.*/pkgver=$_date/" \ + APKBUILD || return 1 + abuild checksum } prepare() { @@ -64,6 +59,7 @@ build() { --localstatedir=/var \ --release \ --disable-avahi \ + --enable-dvbcsa \ || return 1 make || return 1 } @@ -79,6 +75,6 @@ package() { "$pkgdir/etc/$pkgname" || return 1 } -md5sums="9048b0d2a5dda4436bce2ec76c9d859d tvheadend-git-20121122.tar.gz +md5sums="abfa68adafb04964263a928934cee2f1 tvheadend-git-20121204.tar.gz 8b7da39441150596bdeb2456f7cf73ed tvheadend-git.initd 17cf7dfaf27706409a004c246c1a2c3c tvheadend-git.confd" |